mmath

a small library for linear algebra

Usage no npm install needed!

<script type="module">
  import mmath from 'https://cdn.skypack.dev/mmath';
</script>

README

mmath

Build Status

a tiny linear algebra library

usage

var mmath = require('mmath');

var matrix = new mmath.Matrix([
  [1,2,3],
  [4,5,6],
  [7,8,9]
]);

API:

Matrix#add(sameDimsMatrix)

Matrix#determinant()

Matrix#get(i, j)

Matrix#multiply(otherMatrix)

Matrix#scalar(number)

Matrix#tranpose()

Matrix#inverse()

Matrix#adjugate()

Matrix#cofactor(i, j)