TOpenCLValue.SubFrom Method

Overload List

#SignatureDescription
1TOpenCLValue SubFrom(TCplx Value, TOpenCLValue Vec)subtract Vec from Value.
2TOpenCLValue SubFrom(Double Value, TOpenCLValue Vec)subtract Vec elements from Value.

Overload 1: TOpenCLValue SubFrom(TCplx Value, TOpenCLValue Vec)

subtract Vec from Value.

#NameTypeDescription
1ValueTCplxscalar
2VecTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

Stores the result in the calling object. Size property of the calling object is set automatically. Dew.Math.TOpenCLBase.Complex property of the calling object is set to True.

Overload 2: TOpenCLValue SubFrom(Double Value, TOpenCLValue Vec)

subtract Vec elements from Value.

#NameTypeDescription
1ValueDoublescalar
2VecTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

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