Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > LUDecomposition Class > Methods > LUDecomposition.GetInverse Method


Extreme Optimization Mathematics Library for .NET

LUDecomposition.GetInverse Method ()

Calculates the inverse of the factorized Matrix.

[Visual Basic]
Overrides Overloads Public Function GetInverse() As Matrix
[C#]
public override Matrix GetInverse();

Remarks

The inverse of a matrix is the matrix that, when multiplied by the original matrix, gives an identity matrix.

If the matrix is singular, its inverse does not exist and a MatrixSingularException is thrown.

The inverse is only defined for a square matrix. If the matrix is not square, an exception of type DimensionMismatchException is thrown.

Exceptions

Exception TypeCondition
DimensionMismatchExceptionThe matrix is not square.
MatrixSingularExceptionThe matrix is singular.

See Also

LUDecomposition Class | Extreme.Mathematics.LinearAlgebra Namespace | LUDecomposition.GetInverse Overload List | LinearTransformation