clValue::Sub Method

Overload List

#SignatureDescription
1TOpenCLValue *Sub(TOpenCLValue *Src, double Value) const;Subtract real Value from Src.
2TOpenCLValue *Sub(TOpenCLValue *Src, TCplx Value) const;Subtract complex Value from Src.
3TOpenCLValue *Sub(TOpenCLValue *Vec1, TOpenCLValue *Vec2) const;Computes Vec1 - Vec2.

Overload 1: TOpenCLValue *Sub(TOpenCLValue *Src, double Value) const;

Subtract real Value from Src.

#NameTypeDescription
1SrcTOpenCLValue *
2Valuedouble
Remarks:

Store the result in calling object.

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

Overload 2: TOpenCLValue *Sub(TOpenCLValue *Src, TCplx Value) const;

Subtract complex Value from Src.

#NameTypeDescription
1SrcTOpenCLValue *
2ValueTCplx
Remarks:

Store the results in calling object. Size and clValue::Complex property of calling object are adjusted automatically.

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

Overload 3: TOpenCLValue *Sub(TOpenCLValue *Vec1, TOpenCLValue *Vec2) const;

Computes Vec1 - Vec2.

#NameTypeDescription
1Vec1TOpenCLValue *
2Vec2TOpenCLValue *
Remarks:

Stores the result in the calling object. FloatPrecision and clValue::Complex property of the calling object are adjusted automatically. An exception is raised if Vec1 and Vec2 FloatPrecision and clValue::Complex properties do not match.

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