Matrix.MtxIntPower Method

function MtxIntPower(const Src: TMtx; Exponent: Integer): TMtx;

Calculates the matrix to integer power.

#NameTypeDescription
1SrcTMtx
2ExponentInteger

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

Remarks:

Calculate the matrix to any integer power. 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.MtxPower