TMtx.Determinant Method

Overload List

#SignatureDescription
1void Determinant(ref TCplx result, TMtxType MtxType)Calculates the determinant of squared complex matrix.
2Double Determinant(TMtxType MtxType)Determinant of squared matrix.

Overload 1: void Determinant(ref TCplx result, TMtxType MtxType)

Calculates the determinant of squared complex matrix.

#NameTypeDescription
1resultTCplx (ref)output
2MtxTypeTMtxType

Result: stored in self (calling object)

Returns: the result in result complex variable.

Remarks:

An exception is raised if the calling matrix Dew.Math.TMtxVec.Complex property is false.

Overload 2: Double Determinant(TMtxType MtxType)

Determinant of squared matrix.

#NameTypeDescription
1MtxTypeTMtxType

Returns: Double

Remarks:

Calculate the determinant of squared real matrix. An exception is raised if the calling matrix Dew.Math.TMtxVec.Complex property is true.

Examples
TMtx A;
double b;
MtxVec.CreateIt(out A);
try
    {
        A.SetIt(2,2,false,[1,2,
        2,4]);  // 2x2, !complex matrix
        b = A.Determinant; // 4 + 4 = 9
    }
finally
    {
        MtxVec.FreeIt(ref A);
    }