clValue.IntPower Method

TOpenCLValue IntPower(TOpenCLValue aBase, Int32 Exponent)

Power (integer exponent).

#NameTypeDescription
1aBaseTOpenCLValuesource TOpenCLValue
2ExponentInt32

Returns: TOpenCLValue

Remarks:

Calculate the power Base^Exponent. For non integer exponents, the Dew.Math.clValue.Power method can be used.

Examples
clValue a;
clValue b;
b.Copy(8);
a.IntPower(b, 2);
See Also: clValue.Power