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


Extreme Optimization Mathematics Library for .NET

LUDecomposition.GetDeterminant Method 

Calculates the determinant of the decomposed Matrix.

[Visual Basic]
Overrides Public Function GetDeterminant() As Double
[C#]
public override double GetDeterminant();

Remarks

A system of simultaneous linear equations has a unique solution if its determinant is not equal to zero.

Determinants are only defined for square matrices. If the matrix is not square, an exception of type DimensionMismatchException is thrown.

For a LU factorized matrix PA = LU, the determinant is the product of the diagonal elements of U. Since L is defined to be unit triangular, so the product of its diagonal elements equals 1.

Exceptions

Exception TypeCondition
DimensionMismatchExceptionThe matrix is not square.

See Also

LUDecomposition Class | Extreme.Mathematics.LinearAlgebra Namespace | LinearTransformation