clVector.PowerVec Method

function PowerVec(const aBase: TOpenCLMtxVec; const Exponent: TOpenCLMtxVec): TOpenCLMtxVec;

Raises Base object elements to Exponent object elements power.

#NameTypeDescription
1aBaseTOpenCLMtxVec
2ExponentTOpenCLMtxVec

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

Examples
var a,b,c: clVector;
begin
    a.CopyFromArray(TSingleArray.Create(1,2,3,4));
    b.CopyFromArray(TSingleArray.Create(3,3,2,2));
    c.PowerVec(a,b); // c = [1,8,9,16]
end;
See Also: clVector.Power