Beware of bugs and incomplete stuff ¯\(ツ)/¯
Install via npm:
$ npm install --save linalg
Import the module into your script:
const linalg = require('linalg');
var vector = new linalg.Vector(...args); //new linalg.Vector(1, 2, 3);
var matrix = new linalg.Matrix(width, height, defaultValue);
var matrix = new linalg.Matrix(width, height, function(i, j) {
return foo(i, j); Comprehension
});