2.0.5 • Published 5 years ago

matrix-of-ones v2.0.5

Weekly downloads
2
License
ISC
Repository
github
Last release
5 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

5 years ago

2.0.2

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago