Matrix22FTryInvert Method |
Namespace: DigitalRune.Mathematics.Algebra
This method is the equivalent to Invert, except that no exceptions are thrown. The return value indicates whether the operation was successful.
Due to numerical errors it can happen that some singular matrices are not recognized as singular by this method. This method is optimized for fast matrix inversion and not for safe detection of singular matrices. If you need to detect if a matrix is singular, you can, for example, compute its Determinant and see if it is near zero.