TOpenCLMatrix.PowerVec Method

TOpenCLMtxVec PowerVec(TOpenCLMtxVec Base, TOpenCLMtxVec Exponent)

Raises Base object elements to Exponent object elements power.

#NameTypeDescription
1BaseTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2ExponentTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

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.TOpenCLBase.Complex property is True.

Examples
clMatrix a;
clMatrix b;
clMatrix c;
a.CopyFromArray(2,2,TSingleArray.Create(1,2,3,4));
b.CopyFromArray(2,2,TSingleArray.Create(3,3,2,2));
c.PowerVec(a,b); // c = new double[] {1,8,9,16}