Constructor
new Matrix(height, width)
Constructs a new array.
Parameters:
Name | Type | Description |
---|---|---|
height |
number | The number of rows in the matrix. |
width |
number | The number of collumns in the matrix. |
Extends
- Array
Methods
(static) invert(a) → {Matrix}
Invert the matrix.
Parameters:
Name | Type | Description |
---|---|---|
a |
Matrix | The matrix to invert. |
Throws:
-
You either fed it a non-square matrix, or something else went wrong.
- Type
- Error
Returns:
The inverted matrix.
- Type
- Matrix