Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double Determinant(TMtxType MtxType = TMtxType::mtGeneral); | Determinant of squared matrix. |
| 2 | void Determinant(TCplx &result, TMtxType MtxType = TMtxType::mtGeneral); | Calculates the determinant of squared complex matrix. |
Overload 1: double Determinant(TMtxType MtxType = TMtxType::mtGeneral);
Determinant of squared matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | MtxType = TMtxType::mtGeneral | TMtxType |
Remarks:
Calculate the determinant of squared real matrix. An exception is raised if the calling matrix TMtx::Complex property is true.
Examples
#include "MtxVec.h"
#include "Units.MtxVec.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVec;
void Example()
{
TMtx* A;
double b;
CreateIt(A);
A->SetIt(2, 2, false, DewArray<double>{1, 2, 2, 4}); // 2x2, not complex matrix
b = A->Determinant(); // 4 + 4 = 9
FreeIt(A);
}
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler
Overload 2: void Determinant(TCplx &result, TMtxType MtxType = TMtxType::mtGeneral);
Calculates the determinant of squared complex matrix.
Returns: the result in result complex variable.
Remarks:
An exception is raised if the calling matrix TMtx::Complex property is false.
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler