TOpenCLMatrix.Add Method

Overload List

#SignatureDescription
1TOpenCLMtxVec Add(TCplx Value)Adds complex Value to all calling object complex elements.
└ indexed: TOpenCLMtxVec Add(TCplx Value, Int32 Index, Int32 Len)
2TOpenCLMtxVec Add(TOpenCLMtxVec Vec)Array addition.
└ indexed: TOpenCLMtxVec Add(TOpenCLMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)
3TOpenCLMtxVec Add(TOpenCLMtxVec Vec, TCplx Value)Adds complex Value to each element of the Vec object.
└ indexed: TOpenCLMtxVec Add(TOpenCLMtxVec Vec, TCplx Value, Int32 VecIndex, Int32 Index, Int32 Len)
4TOpenCLMtxVec Add(TOpenCLMtxVec Src1, TOpenCLMtxVec Src2)Add each of Vec2 elements to corresponding elements in Vec1.
└ indexed: TOpenCLMtxVec Add(TOpenCLMtxVec Vec1, TOpenCLMtxVec Vec2, Int32 Vec1Index, Int32 Vec2Index, Int32 Index, Int32 Len)
5TOpenCLMtxVec Add(TOpenCLMtxVec Vec, Double Value)Adds Value to the each element of the Vec object.
└ indexed: TOpenCLMtxVec Add(TOpenCLMtxVec Vec, Double Value, Int32 VecIndex, Int32 Index, Int32 Len)
6TOpenCLMtxVec Add(Double Value)Adds Value to object elements.
└ indexed: TOpenCLMtxVec Add(Double Value, Int32 Index, Int32 Len)

Overload 1: TOpenCLMtxVec Add(TCplx Value)

Adds complex Value to all calling object complex elements.

#NameTypeDescription
1ValueTCplxscalar

Result: stored in self (calling object), returns self for chaining

Indexed: TOpenCLMtxVec Add(TCplx Value, Int32 Index, Int32 Len)

Adds complex Value to calling object complex elements [Index]..[Index+Len-1].

#NameTypeDescription
1ValueTCplxscalar
2IndexInt32start index
3LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised if array borders are overrun.

Overload 2: TOpenCLMtxVec Add(TOpenCLMtxVec Vec)

Array addition.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

Result: stored in self (calling object), returns self for chaining

Remarks:

Add each of Vec elements to corresponding elements in the calling object.

Indexed: TOpenCLMtxVec Add(TOpenCLMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)

Add Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2VecIndexInt32
3IndexInt32start index
4LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised array borders are overrun.

Overload 3: TOpenCLMtxVec Add(TOpenCLMtxVec Vec, TCplx Value)

Adds complex Value to each element of the Vec object.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2ValueTCplxscalar

Result: stored in self (calling object), returns self for chaining

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.

Indexed: TOpenCLMtxVec Add(TOpenCLMtxVec Vec, TCplx Value, Int32 VecIndex, Int32 Index, Int32 Len)

Adds complex Value to each elements of the Vec object in range [VecIndex]..[VecIndex+Len-1].

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2ValueTCplxscalar
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Stores the result to elements [Index]..[Index+Len-1] of the calling object. Size of the calling object is not changed. An exception is raised if array borders are overrun. Dew.Math.TOpenCLBase.Complex property of the calling object is set to True.

Overload 4: TOpenCLMtxVec Add(TOpenCLMtxVec Src1, TOpenCLMtxVec Src2)

Add each of Vec2 elements to corresponding elements in Vec1.

#NameTypeDescription
1Src1TOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2Src2TOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

Result: stored in self (calling object), returns self for chaining

Remarks:

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

Indexed: TOpenCLMtxVec Add(TOpenCLMtxVec Vec1, TOpenCLMtxVec Vec2, Int32 Vec1Index, Int32 Vec2Index, Int32 Index, Int32 Len)

Add Vec1 elements [Vec1Index]..[Vec1Index+Len-1] to Vec2 elements [Vec2Index]..[Vec2Index+Len-1].

#NameTypeDescription
1Vec1TOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2Vec2TOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
3Vec1IndexInt32
4Vec2IndexInt32
5IndexInt32start index
6LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the results in calling object elements [Index]..[Index+Len-1]. An exception is raised array borders are overrun.

Overload 5: TOpenCLMtxVec Add(TOpenCLMtxVec Vec, Double Value)

Adds Value to the each element of the Vec object.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2ValueDoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

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

Indexed: TOpenCLMtxVec Add(TOpenCLMtxVec Vec, Double Value, Int32 VecIndex, Int32 Index, Int32 Len)

Adds Value to each element of Vec object in range [VecIndex]..[VecIndex+Len-1].

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2ValueDoublescalar
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Stores result to elements [Index]..[Index+Len-1] of the calling object. Size of the calling object is not changed. An exception is raised if array borders are overrun. Dew.Math.TOpenCLBase.Complex property of the calling object is set implicitly.

Overload 6: TOpenCLMtxVec Add(Double Value)

Adds Value to object elements.

#NameTypeDescription
1ValueDoublescalar

Result: stored in self (calling object), returns self for chaining

Indexed: TOpenCLMtxVec Add(Double Value, Int32 Index, Int32 Len)

Adds Value to calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1ValueDoublescalar
2IndexInt32start index
3LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised if array borders are overrun.