clValue.IntPower Method

function IntPower(const aBase: TOpenCLValue; Exponent: Integer): TOpenCLValue;

Power (integer exponent).

#NameTypeDescription
1aBaseTOpenCLValue
2ExponentInteger

Returns: TOpenCLValue

Remarks:

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

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