TMtx.PowerMtx Method

TMtx PowerMtx(TMtx Base, TMtx Exponent)

Raises matrix elements to any power.

#NameTypeDescription
1BaseTMtxsource TMtx
2ExponentTMtxsource TMtx

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 Dew.Math.TMtx.Rows, Dew.Math.TMtx.Cols and Dew.Math.TMtxVec.Complex properties of the calling matrix are adjusted automatically. The Dew.Math.TMtx.Rows, Dew.Math.TMtx.Cols and Dew.Math.TMtxVec.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
TMtx A;
TMtx B;
TMtx C;
MtxVec.CreateIt(out A, out B, out 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
    {
        MtxVec.FreeIt(ref A, ref B, ref C);
    }
See Also: Math387.Power