Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void Determinant(ref TCplx result, TMtxType MtxType) | Calculates the determinant of squared complex matrix. |
| 2 | Double Determinant(TMtxType MtxType) | Determinant of squared matrix. |
Overload 1: void Determinant(ref TCplx result, TMtxType MtxType)
Calculates the determinant of squared complex matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | result | TCplx (ref) | output |
| 2 | MtxType | TMtxType |
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | MtxType | TMtxType |
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);
}