npm.io
1.0.0 • Published 8 years ago

matrix-class

Licence
MIT
Version
1.0.0
Deps
0
Size
13 kB
Vulns
0
Weekly
0

matrix.js

A matrix class implementation with basic algebra functionalities

Usage

import Matrix from 'matrix'

const matrix2By3Builder = Matrix.matrix(2,3)
const 2By3MatrixWith6Values = matrix2By3Builder(1, 2, 3, 4, 5, 6)
// => |1, 2, 3|
//    |4, 5, 6|

const 3by3IdentityMatrix = Matrix.identity(3)
// => |1, 0, 0|
//    |0, 1, 0|
//    |0, 0, 1|

see https://github.com/tunylund/matrix-class/lib/matrix.js for detailed documentation of Matrix features

Keywords