Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/callumacrae/matrixjs
A matrix library for JavaScript and Node.js.
https://github.com/callumacrae/matrixjs
Last synced: 20 days ago
JSON representation
A matrix library for JavaScript and Node.js.
- Host: GitHub
- URL: https://github.com/callumacrae/matrixjs
- Owner: callumacrae
- Created: 2012-01-19T17:33:02.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-06-15T21:53:49.000Z (over 12 years ago)
- Last Synced: 2024-12-17T05:29:26.816Z (23 days ago)
- Language: JavaScript
- Homepage:
- Size: 104 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MatrixJS
============MatrixJS is a [matrix](http://en.wikipedia.org/wiki/Matrix_%28mathematics%29) library for JavaScript and Node.js.
Documentation hasn't been written yet.
### Example
``` javascript
var a = new Matrix([
[1, 3, 7],
[3, 4, -3],
[3.5, 2, 22]
]);var b = new Matrix([
"1 3 7",
"3 4 -3",
"3.5 2 22"
]);// add together:
var c = Matrix.add(a, b);
// or:
var c = a.add(b);// multiply together
var d = Matrix.multiply(a, b);
// or:
var d = a.multBy(b);console.log(d.toString()); // will format it nicely
```