Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A matrix library for JavaScript and Node.js.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 demo
Octocat-spinner-32 lib
Octocat-spinner-32 README.md
README.md

MatrixJS

MatrixJS is a matrix library for JavaScript and Node.js.

Documentation hasn't been written yet.

Example

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
Something went wrong with that request. Please try again.