TOpenCLValue.Sub Method

Overload List

#SignatureDescription
1TOpenCLValue Sub(TOpenCLValue Src, TCplx Value)Subtract complex Value from Src.
2TOpenCLValue Sub(TOpenCLValue Vec1, TOpenCLValue Vec2)Subtract Vec2 elements from Vec1 elements.
3TOpenCLValue Sub(TOpenCLValue Src, Double Value)Subtract real Value from Src.

Overload 1: TOpenCLValue Sub(TOpenCLValue Src, TCplx Value)

Subtract complex Value from Src.

#NameTypeDescription
1SrcTOpenCLValuesource TOpenCLValue
2ValueTCplxscalar

Returns: TOpenCLValue

Remarks:

Stores the result in the calling object. FloatPrecision and Dew.Math.TOpenCLBase.Complex property of calling object are adjusted automatically.

Overload 2: TOpenCLValue Sub(TOpenCLValue Vec1, TOpenCLValue Vec2)

Subtract Vec2 elements from Vec1 elements.

#NameTypeDescription
1Vec1TOpenCLValuesource TOpenCLValue
2Vec2TOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

Stores the result in the calling object. FloatPrecision and Dew.Math.TOpenCLBase.Complex property of calling object are adjusted automatically. An exception is raised, if Vec1 and Vec2 FloatPrecision and Dew.Math.TOpenCLBase.Complex property do not match.

Overload 3: TOpenCLValue Sub(TOpenCLValue Src, Double Value)

Subtract real Value from Src.

#NameTypeDescription
1SrcTOpenCLValuesource TOpenCLValue
2ValueDoublescalar

Returns: TOpenCLValue

Remarks:

Stores the result in the calling object. FloatPrecision and Dew.Math.TOpenCLBase.Complex property of calling object are adjusted automatically.