# matrix-of-ones

> create a matrix where every element is equal to one or the samve value

Latest version **2.0.5** (published 2020-12-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install matrix-of-ones
pnpm add matrix-of-ones
yarn add matrix-of-ones
bun add matrix-of-ones
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2020-12-10 |
| First published | 2020-12-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yoshiaki Aibara |
| Maintainers | yoshi106 |
| Keywords | matrix, ones, math, mathematics, matrix of ones |

## Links

- npm: https://www.npmjs.com/package/matrix-of-ones
- Repository: https://github.com/Yoshi106/matrix-of-ones
- Homepage: https://github.com/Yoshi106/matrix-of-ones#readme
- Issues: https://github.com/Yoshi106/matrix-of-ones/issues
- npm.io page: https://npm.io/package/matrix-of-ones

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 2.0.5 (latest) — 2020-12-10
- 2.0.4 — 2020-12-10
- 2.0.3 — 2020-12-10
- 2.0.2 — 2020-12-10
- 2.0.1 — 2020-12-09
- 2.0.0 — 2020-12-09
- 1.0.0 — 2020-12-06

## README

# matrix-of-ones

matrix-of-ones creates a matrix where every element is the same value.

## Installation

Using npm:

```jsx
$ npm install matrix-of-ones
```

Using yarn:

```jsx
$ yarn add matrix-of-ones
```

## Usage

```jsx
const generateMatrix = require("matrix-of-ones");

const matrix1 = generateMatrix(3, 2); // matrix1 =  [[1, 1], [1, 1], [1, 1]]
const matrixA = generateMatrix(2, 3, "A"); // matrixA = [["A", "A", "A"], ["A", "A", "A"]]
```

### License

ISC

---
_Source: https://npm.io/package/matrix-of-ones · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
