matrixlib

0.0.3 • Public • Published

Matrixlib

Add matrix support and routines to nodejs

Methods

.matrix(m,n,init)

Create a matrix m by n (m rows, n columns) with initial value init

Example

// 4x4 matrix filled with 0
var mlib = require('matrixlib');
var myMatrix = mlib.matrix(4,4,0);

.identity(n)

Create an identity matrix n by n

Example

// 3x3 identity matrix
var mlib = require('matrixlib');
var myIdentityMatrix = mlib.identity(3);

.copy(matrix)

Returns a copy of a matrix.

.equals(a,b)

Tests for equality between matrix a and b.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    2
  • 0.0.2
    1
  • 0.0.1
    1
  • 0.0.0
    1

Package Sidebar

Install

npm i matrixlib

Weekly Downloads

5

Version

0.0.3

License

none

Last publish

Collaborators

  • rook2pawn