TSparseMtx.PowerVec Method

TMtxVec PowerVec(TMtxVec Base, TMtxVec Exponent)

Raises Base object elements to Exponent object elements power.

#NameTypeDescription
1BaseTMtxVecsource TVec or TMtx
2ExponentTMtxVecsource TVec or TMtx

Result: stored in self (calling object), returns self for chaining

Remarks:

Raises Base elements to Exponent elements power. Only positive exponents can be handled if exponent object Dew.Math.TMtxVec.Complex property is True.

Examples
Matrix a;
Matrix b;
Matrix c;
a.SetIt(1,2,true,new double[] {1,2,3,4});
b.SetIt(1,2,true,new double[] {3,3,2,2});
c.PowerVec(a,b); // c = new double[] {1,8,9,16}