Matrix.Determinant Property

Definition

Gets the determinant of this Matrix structure.

C#
public double Determinant { get; }

Property Value

The determinant of this Matrix.

Examples

This example shows how to get the determinant of a Matrix.

C#
private Double determinantExample()
{
    Matrix myMatrix = new Matrix(5, 10, 15, 20, 25, 30);
    
    // Get the determinant, which is equal to -50.
    Double determinant = myMatrix.Determinant;
    
    return determinant;
}

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10