Summary
Raises matrix elements to any power.
Class
TMtx
Declaration
Function PowerMtx(Base, Exponent: TMtx): TMtx;
Description
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.
Note: Only positive exponents can be handled if Exponent matrix is not complex.
Example 1
var A,B,C: TMtx;
begin
CreateIt(A,B,C);
try
A.SetIt(2,2,False,[1,2,
2,4]);
B.SetIt(2,2,False,[1,2,
2,4]);
C.Power(A,B);
finally
FreeIt(A,B,C);
end;
end;
| Copyright 2008 Dew Research |
http://www.dewresearch.com