clValue::IntPower Method

TOpenCLValue *IntPower(TOpenCLValue *aBase, int Exponent) const;

Power (integer exponent).

#NameTypeDescription
1aBaseTOpenCLValue *
2Exponentint
Remarks:

Calculate the power Base^Exponent. For non integer exponents, the clValue::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: clValue::Power
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler