clValue.Power Method

TOpenCLValue Power(TOpenCLValue Base, TOpenCLValue Exponent)

Raises base object elements to any power.

#NameTypeDescription
1BaseTOpenCLValuesource TOpenCLValue
2ExponentTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

Raises Base calling object elements to any power. The Dew.Math.clValue.IntPower is faster, if Exponent is an integer. Real valued power can handle only positive Exponent. Dew.Math.clValue.IntPower can handle negative exponent also. To compute a power to the negative exponent in general case or when the base is negative, use the complex version of the function.

Examples
clValue a;
clValue b;
b.Copy(2.3);
c.Copy(4);
a.Power(b, c);  // // a = b^c
See Also: clValue.IntPower