DiagonalMatrix<T>.GetDeterminant Method

Calculates the determinant of this matrix.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public override T GetDeterminant()

Return Value

T
The determinant of the DenseMatrix<T>.

Remarks

For a diagonal matrix, the determinant is the product of the diagonal elements.

Exceptions

DimensionMismatchException

The matrix is not square.

See Also