TOpenCLValue IntPower(TOpenCLValue aBase, Int32 Exponent)
Power (integer exponent).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aBase | TOpenCLValue | source TOpenCLValue |
| 2 | Exponent | Int32 |
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