Matrix.MtxPower Method

Overload List

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

Overload 1: function MtxPower(const Src: TMtx; Exponent: TCplx; SourceType: TMtxType): TMtx;

Calculate the matrix to complex power Exponent.

#NameTypeDescription
1SrcTMtx
2ExponentTCplxscalar
3SourceTypeTMtxType

Result: stored in self (calling object), returns self for chaining

Overload 2: function MtxPower(const Src: TMtx; Exponent: Double; SourceType: TMtxType): TMtx;

Calculates the matrix to any power, real or integer.

#NameTypeDescription
1SrcTMtx
2ExponentDoublescalar
3SourceTypeTMtxType

Result: stored in self (calling object), returns self for chaining

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 Matrix.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: Matrix.MtxSqrt, Matrix.MtxFunction