inverse

final static Matrix inverse(Matrix $self)
final static ComplexMatrix inverse(ComplexMatrix $self)

Calculates an inverse matrix of a square matrix.

Return

inverse matrix. identity if not invertible.