TOpenCLValue.Add Method

Overload List

#SignatureDescription
1function Add(const Vec: TOpenCLValue; Value: TCplx): TOpenCLValue;Adds complex Value to Vec.
2function Add(const Src1: TOpenCLValue; const Src2: TOpenCLValue): TOpenCLValue;Add Src1 and Src1.
3function Add(const Vec: TOpenCLValue; Value: Double): TOpenCLValue;Adds Value to Vec.

Overload 1: function Add(const Vec: TOpenCLValue; Value: TCplx): TOpenCLValue;

Adds complex Value to Vec.

#NameTypeDescription
1VecTOpenCLValue
2ValueTCplxscalar

Returns: TOpenCLValue

Remarks:

Store the result to the calling object. Size property of the calling object is set automatically. TOpenCLBase.Complex property of the calling object is set to True.

Overload 2: function Add(const Src1: TOpenCLValue; const Src2: TOpenCLValue): TOpenCLValue;

Add Src1 and Src1.

#NameTypeDescription
1Src1TOpenCLValue
2Src2TOpenCLValue

Returns: TOpenCLValue

Remarks:

The results are stored in the calling object. FloatPrecision and TOpenCLBase.Complex properties of the calling object are set implicitly to match Vec1 and Vec2 vectors.

Overload 3: function Add(const Vec: TOpenCLValue; Value: Double): TOpenCLValue;

Adds Value to Vec.

#NameTypeDescription
1VecTOpenCLValue
2ValueDoublescalar

Returns: TOpenCLValue

Remarks:

Stores the result in the calling object. FloatPrecision and TOpenCLBase.Complex properties of the calling object are set automatically.