You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Matrix.PowerMtx Method
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.PowerMtx Method

Raises matrix elements to any power.

Pascal
function PowerMtx(Base: TMtx; Exponent: TMtx): TMtx; overload;

Raises Base matrix elements to the Exponent matrix elements power and stores the results in the calling matrix. The Rows, Cols and Complex properties of the calling matrix are adjusted automatically. The Rows, Cols and Complex properties of Base and Exponent matrices must match otherwise an exception is raised.

Only positive exponents can be handled if Exponent matrix is not complex.

var A,B,C: Matrix; begin A.SetIt(2,2,False,[1,2, 2,4]); B.SetIt(2,2,False,[1,2, 2,4]); C.Power(A,B); // or C := Power(A,B); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!