It is the JavaScript version of an existing PHP class that can take the definition of a matrix as a string with the values of the elements separated by commas and the rows by semi-colons.

It can also create an identity matrix given its size.

The object can perform several types of operations with matrices like add or subtract another matrix, multiply by a scalar value or by another matrix, get the determinant, get the cofactor, transpose the matrix, adjugate and invert.