TMtx::MtxPower Method

Overload List

#SignatureDescription
1TMtx *MtxPower(TMtx *Src, double Exponent, TMtxType SourceType = TMtxType::mtGeneral);Calculates the matrix to any power, real or integer.
2TMtx *MtxPower(TMtx *Src, TCplx Exponent, TMtxType SourceType = TMtxType::mtGeneral);Calculate the matrix to complex power Exponent.

Overload 1: TMtx *MtxPower(TMtx *Src, double Exponent, TMtxType SourceType = TMtxType::mtGeneral);

Calculates the matrix to any power, real or integer.

#NameTypeDescription
1SrcTMtx *
2Exponentdouble
3SourceType = TMtxType::mtGeneralTMtxType
Remarks:

Calculate the matrix to any power, real or integer. It can also be used to compute the square root of the 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::MtxSqrt, TMtx::MtxFunction
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 2: TMtx *MtxPower(TMtx *Src, TCplx Exponent, TMtxType SourceType = TMtxType::mtGeneral);

Calculate the matrix to complex power Exponent.

#NameTypeDescription
1SrcTMtx *
2ExponentTCplx
3SourceType = TMtxType::mtGeneralTMtxType
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler