Returns inverse of a matrix if it exists or the pseudoinverse.
Parameters
matrix: MaybeMatrix
Optionalthreshold: number
Relative threshold for taking inverse of singular values. Singular values smaller than threshold * max(rows, columns) * largestSingularValue are treated as zero. Default: Number.EPSILON.
Returns inverse of a matrix if it exists or the pseudoinverse.