function IntPower(Base: TOpenCLValue; Exponent: Integer): TOpenCLValue;
Power (integer exponent).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Base | TOpenCLValue | source TOpenCLValue |
| 2 | Exponent | Integer |
Returns: TOpenCLValue
Remarks:
Calculate the power Base^(Exponent). For non-integer exponents, the TOpenCLValue.Power method can be used.
Examples
var a,b: clValue;
begin
b.Copy(8);
a.IntPower(b, 2);
end;
See Also: TOpenCLValue.Power