TOpenCLValue::IntPower Method

Overload List

#SignatureDescription
1TOpenCLBase *IntPower(TOpenCLBase *aBase, int Exponent);
2TOpenCLValue *IntPower(TOpenCLValue *Base, int Exponent);Power (integer exponent).

Overload 1: TOpenCLBase *IntPower(TOpenCLBase *aBase, int Exponent);

#NameTypeDescription
1aBaseTOpenCLBase *
2Exponentint
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: TOpenCLValue *IntPower(TOpenCLValue *Base, int Exponent);

Power (integer exponent).

#NameTypeDescription
1BaseTOpenCLValue *
2Exponentint
Remarks:

Calculate the power Base^(Exponent). For non-integer exponents, the TOpenCLValue::Power method can be used.

Examples
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    clValue a, b;

    b.Copy(8);
    a.IntPower(b,2);
}
See Also: TOpenCLValue::Power
Declared in Dew::Math::TOpenCLValue · Dew.Math/clMtxVec.h · Cross-compiler