Class: Matrix

Matrix(height, width)

A matrix class, allows you to visualize multiple dimensions.

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.

Source:

Extends

  • Array

Methods

(static) invert(a) → {Matrix}

Invert the matrix.

Parameters:
Name Type Description
a Matrix

The matrix to invert.

Source:
Throws:

You either fed it a non-square matrix, or something else went wrong.

Type
Error
Returns:

The inverted matrix.

Type
Matrix