Skip to main content

Determinant

det(input: any[] | Mat) : Number

param input - A matrix, JS or Mat, should be square.

returns: Number - A number which represents the determinant of the input. One useful tool of the determinant is determining if a matrix is invertible: if det is not zero then it is invertible.

This function simply returns the determinant of a square matrix.