0.1.2 • Published 10 years ago

simple-matrix v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

Matrix methods wraps around Array

install

  • bowser install simple-matrix
  • npm install simple-matrix

how to use

  • as mixin

    var arr = [];
    Matrix(arr); // now `arr` is mixined with matrix methods
  • as constructor

    var matrix = new Matrix();

available methods

  • matrix.row(m) -> get the specified row
  • matrix.column(n) -> get the specified column
  • matrix.position(m, n[, v]) -> get the specified column, optional third as setter
  • matrix.loop(fn) -> loop throught the array, invoking fn on each item passing m, n, and value, this will be bind to matrix

TODO

  • add loop method
  • add slice&make???
  • add dupicate
0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago