TOpenCLValue.Add Method

Overload List

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

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

Adds complex Value to Vec.

#NameTypeDescription
1VecTOpenCLValuesource TOpenCLValue
2ValueTCplxscalar

Returns: TOpenCLValue

Remarks:

Store the result to 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 Add(TOpenCLValue Src1, TOpenCLValue Src2)

Add Src1 and Src1.

#NameTypeDescription
1Src1TOpenCLValuesource TOpenCLValue
2Src2TOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

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

Overload 3: TOpenCLValue Add(TOpenCLValue Vec, Double Value)

Adds Value to Vec.

#NameTypeDescription
1VecTOpenCLValuesource TOpenCLValue
2ValueDoublescalar

Returns: TOpenCLValue

Remarks:

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