matThe matrix to invert
The inverse of the given matrix if it has one, or the input if it is singular
TypeReasonInvalidOperationExceptionThrown if the Matrix4d is singular.