clValue.Sub Method

Overload List

#SignatureDescription
1function Sub(const Src: TOpenCLValue; Value: TCplx): TOpenCLValue;Subtract complex Value from Src.
2function Sub(const Vec1: TOpenCLValue; const Vec2: TOpenCLValue): TOpenCLValue;Computes Vec1 - Vec2.
3function Sub(const Src: TOpenCLValue; Value: Double): TOpenCLValue;Subtract real Value from Src.

Overload 1: function Sub(const Src: TOpenCLValue; Value: TCplx): TOpenCLValue;

Subtract complex Value from Src.

#NameTypeDescription
1SrcTOpenCLValue
2ValueTCplxscalar

Returns: TOpenCLValue

Remarks:

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

Overload 2: function Sub(const Vec1: TOpenCLValue; const Vec2: TOpenCLValue): TOpenCLValue;

Computes Vec1 - Vec2.

#NameTypeDescription
1Vec1TOpenCLValue
2Vec2TOpenCLValue

Returns: TOpenCLValue

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.

Overload 3: function Sub(const Src: TOpenCLValue; Value: Double): TOpenCLValue;

Subtract real Value from Src.

#NameTypeDescription
1SrcTOpenCLValue
2ValueDoublescalar

Returns: TOpenCLValue

Remarks:

Store the result in calling object.