You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > public > MtxPower Method > TMtx.MtxPower Method (TMtx, double, TMtxType)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.MtxPower Method (TMtx, double, TMtxType)

Calculates the matrix to any power, real or integer.

Pascal
function MtxPower(const Src: TMtx; Exponent: double; SourceType: TMtxType = mtGeneral): TMtx; overload;

Calculate the matrix to any power, real or integer. It can also be used to compute the square root of the matrix. Because the 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.

The algorithm for general matrices will fail on a symmetric matrix.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!