JSPM

matrixjs

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 108
  • Score
    100M100P100Q70765F

A JavaScript utility library for working with mathematical matrices

Package Exports

  • matrixjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (matrixjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Matrix.js

About

Matrix.js is a JavaScript utility library for working with matrices. It currently supports:

  • Adding matrices
  • Subtracting matrices
  • Multiplying matrices
  • Finding the determinant of a n by n matrix
  • Creating a n by n identity matrix
  • Raising a n by n matrix to the xth power
  • Multiplying each element in the matrix by a scalar

For more information, see the docs.

Contributing

Patches welcome, just make sure there are matching unit tests. Tests use mocha with expect.js. One particular feature that still needs to be implemented is finding the inverse of a matrix. I have an implementation that can invert either a 2 by 2 or a 3 by 3 matrix, but I am still looking for how to invert a n by n matrix.