function PowerMtx(Base: TMtx; Exponent: TMtx): TMtx;
Raises matrix elements to any power.
Result: stored in self (calling object), returns self for chaining
Remarks:
Raises Base matrix elements to the Exponent matrix elements power and stores the results in the calling matrix. The Matrix.Rows, Matrix.Cols and Matrix.Complex properties of the calling matrix are adjusted automatically. The Matrix.Rows, Matrix.Cols and Matrix.Complex properties of Base and Exponent matrices must match otherwise an exception is raised.
Note
Only positive exponents can be handled if Exponent matrix is not complex.
Examples
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;
See Also: Matrix.Power