2.0.5 • Published 3 years ago

matrix-of-ones v2.0.5

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

matrix-of-ones

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

Installation

Using npm:

$ npm install matrix-of-ones

Using yarn:

$ yarn add matrix-of-ones

Usage

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

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago