TMtxType DetectMtxType(bool CheckPosDef = false) const;
Determines type of the matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | CheckPosDef = false | bool |
Remarks:
Tests the calling matrix and returns the TMtxType of the calling of matrix. The following types are supported:
- mtSymmPosDef = symmetric positive definite matrix
- mtSymmetric = symmetric matrix
- mtHermPosDef = Hermitian positive definite matrix
- mtHermitian = Hermitian matrix
- mtTriangle = triangular matrix, with unit or non unit main diagonal
- mtGeneral = general matrix (none of the above)
Checking for positive definite matrix can be very expensive (O(n) = 1/3*n^3). Therefore the ChekPosDef parameter is False by default, unless the user specifies otherwise. The method will not detect banded matrix storage.
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler