linalg.js
Version:
Linear Algebra Module
32 lines (24 loc) • 595 B
Markdown
# Linear Algebra Module
### Warning : This module is in development !
Beware of bugs and incomplete stuff ¯\\_(ツ)_/¯
## Installation
Install via npm:
```
$ npm install --save linalg
```
Import the module into your script:
```js
const linalg = require('linalg');
```
## Objects
### Vector
```js
var vector = new linalg.Vector(...args); //new linalg.Vector(1, 2, 3);
```
### Matrix
```js
var matrix = new linalg.Matrix(width, height, defaultValue);
var matrix = new linalg.Matrix(width, height, function(i, j) {
return foo(i, j); Comprehension
});
```