clValue::Power Method

Overload List

#SignatureDescription
1TOpenCLValue *Power(TOpenCLValue *Base, TOpenCLValue *Exponent) const;Raises base object elements to any power.
2TOpenCLValue *Power(const double Base, TOpenCLValue *Exponent) const;
3TOpenCLValue *Power(const TCplx &Base, TOpenCLValue *Exponent) const;
4TOpenCLValue *Power(TOpenCLValue *Base, double Exponent) const;
5TOpenCLValue *Power(TOpenCLValue *Base, TCplx Exponent) const;

Overload 1: TOpenCLValue *Power(TOpenCLValue *Base, TOpenCLValue *Exponent) const;

Raises base object elements to any power.

#NameTypeDescription
1BaseTOpenCLValue *
2ExponentTOpenCLValue *
Remarks:

Raises Base calling object elements to any power. The clValue::IntPower is faster, if Exponent is an integer. Real valued power can handle only positive Exponent. clValue::IntPower can handle negative exponent also. To compute a power to the negative exponent in general case or when the base is negative, use the complex version of the function.

See Also: clValue::IntPower
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 2: TOpenCLValue *Power(const double Base, TOpenCLValue *Exponent) const;

#NameTypeDescription
1Baseconst double
2ExponentTOpenCLValue *
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 3: TOpenCLValue *Power(const TCplx &Base, TOpenCLValue *Exponent) const;

#NameTypeDescription
1Baseconst TCplx &
2ExponentTOpenCLValue *
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 4: TOpenCLValue *Power(TOpenCLValue *Base, double Exponent) const;

#NameTypeDescription
1BaseTOpenCLValue *
2Exponentdouble
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 5: TOpenCLValue *Power(TOpenCLValue *Base, TCplx Exponent) const;

#NameTypeDescription
1BaseTOpenCLValue *
2ExponentTCplx
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler