clValue.Add Method

Overload List

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

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

Add values in Src1 and Src2.

#NameTypeDescription
1VecTOpenCLValue
2ValueTCplxscalar

Returns: TOpenCLValue

Remarks:

The result is stored in the calling object. clValue.FloatPrecision and clValue.Complex properties of the calling object are set implicitly to match Vec and Value.

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

Add values in Src1 and Src2.

#NameTypeDescription
1Src1TOpenCLValue
2Src2TOpenCLValue

Returns: TOpenCLValue

Remarks:

The result is stored in the calling object. clValue.FloatPrecision and clValue.Complex properties of the calling object are set implicitly to match Src1 and Src2.

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

Add values in Src1 and Src2.

#NameTypeDescription
1VecTOpenCLValue
2ValueDoublescalar

Returns: TOpenCLValue

Remarks:

The result is stored in the calling object. clValue.FloatPrecision and clValue.Complex properties of the calling object are set implicitly to match Vec and Value.