You are here: Symbol Reference > clMtxExpr Namespace > Classes > clVector Record > public > IntPower Method > clVector.IntPower Method (Integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
clVector.IntPower Method (Integer)

Power (integer exponent).

Pascal
function IntPower(Exponent: Integer): TOpenCLMtxVec; overload;

Calculate the power ^(Exponent) for all caling object elements using the integer parameter Exponent. For non integer exponents, the Power and PowerVec methods can be used.

var a: clVector; begin a.CopyFromArray(TSingleArray.Create(1,2,3,4)); a.IntPower(3); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!