TMtx *MtxSqrt(TMtx *Src, TMtxType SourceType = TMtxType::mtGeneral);
Calculates the square root of the matrix.
Remarks:
Calculates the square root of the Src matrix and stores the results to calling matrix. The product of the result with itself will give the original matrix. Because the TMtx::MtxFunction method is based on the eigenvalue decomposition and the eigenvalue, the SourceType for symmetric and symmetric positive definite matrices has to be defined explicitly.
Note
The algorithm for general matrices will fail on a symmetric matrix.
See Also: TMtx::MtxPower, TMtx::MtxFunction
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler