Current collected state Current
Observed since 20 Oct, 19:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Create 2d matrices with superpower
Create multidimensional matrix with superpower
$ npm install --save 2d-mat
var Matrix = require('2d-mat');
var mat = new Matrix([1, 2], [3, 4]);
console.log(mat.indexAt(0, 1));
// -> 1
console.log(mat.set(0, 1, 100));
// -> [[100, 2], [3, 4]]
console.log(mat.transpose());
// -> [[1, 3], [2, 4]]
console.log(mat.size());
// -> [2, 2]
console.log(mat.createEmpty(2, 2));
// -> [[undefined, undefined], [undefined, undefined]]
mat.print();
// - > [[1, 2],
// [3, 4]]
var Matrix = require('2d-mat');
This will create a matrix object
Type: array
Accepts sequence of array where each array is length of row and the size of the array is length columns.
© 2016 vikram. MIT License
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0Registry latest | 22 Mar 2016 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0bfc80d858306d804139e98f059f5a2891bc3583ae5e81551c63cfc833c38b7b