det
det(matrix: any[] | Mat) : number
param matrix - An Array or Mat, should be square.
returns: number - represents the determinant of the matrix. One useful tool of the determinant is determining if a matrix is invertible: if the determinant is not zero then it is invertible.
This function returns the determinant of a square matrix.