clVector::IntPower Method

Overload List

#SignatureDescription
1TOpenCLMtxVec *IntPower(int Exponent) const;Power (integer exponent).
2TOpenCLMtxVec *IntPower(TOpenCLMtxVec *aBase, int Exponent) const;Calculate the power Base^(Exponent) for all Base object elements.

Overload 1: TOpenCLMtxVec *IntPower(int Exponent) const;

Power (integer exponent).

#NameTypeDescription
1Exponentint
Remarks:

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

See Also: clVector::Power, clVector::PowerVec
Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 2: TOpenCLMtxVec *IntPower(TOpenCLMtxVec *aBase, int Exponent) const;

Calculate the power Base^(Exponent) for all Base object elements.

#NameTypeDescription
1aBaseTOpenCLMtxVec *
2Exponentint
Remarks:

Calclation uses the integer Exponent value and stores the results in calling object. Size and clVector::Complex properties of calling object are adjusted automatically.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler