clVector::Add Method

Overload List

#SignatureDescription
1TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2) const;Add each of Vec2 elements to corresponding elements in Vec1.
2TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2, int Vec1Index, int Vec2Index, int Index, int Len) const;Add Vec1 elements [Vec1Index]..[Vec1Index+Len-1] to Vec2 elements [Vec2Index]..[Vec2Index+Len-1].
3TOpenCLMtxVec *Add(const double Value) const;Adds Value to object elements.
4TOpenCLMtxVec *Add(const TCplx &Value) const;Adds complex Value to all calling object complex elements.
5TOpenCLMtxVec *Add(const double Value, int Index, int Len) const;Adds Value to calling object elements [Index]..[Index+Len-1].
6TOpenCLMtxVec *Add(const TCplx &Value, int Index, int Len) const;Adds complex Value to calling object complex elements [Index]..[Index+Len-1].
7TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, const double Value) const;Adds Value to the each element of the Vec object.
8TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, const TCplx &Value) const;Adds complex Value to each element of the Vec object.
9TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, double Value, int VecIndex, int Index, int Len) const;Adds Value to each element of Vec object in range [VecIndex]..[VecIndex+Len-1].
10TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, const TCplx &Value, int VecIndex, int Index, int Len) const;Adds complex Value to each elements of the Vec object in range [VecIndex]..[VecIndex+Len-1].
11TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec) const;Array addition.
12TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, int VecIndex, int Index, int Len) const;Add Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].

Overload 1: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2) const;

Add each of Vec2 elements to corresponding elements in Vec1.

#NameTypeDescription
1Vec1TOpenCLMtxVec *
2Vec2TOpenCLMtxVec *
Remarks:

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

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 2: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2, int Vec1Index, int Vec2Index, int Index, int Len) const;

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

#NameTypeDescription
1Vec1TOpenCLMtxVec *
2Vec2TOpenCLMtxVec *
3Vec1Indexint
4Vec2Indexint
5Indexint
6Lenint
Remarks:

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

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 3: TOpenCLMtxVec *Add(const double Value) const;

Adds Value to object elements.

#NameTypeDescription
1Valueconst double
See Also: clVector::Sub
Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 4: TOpenCLMtxVec *Add(const TCplx &Value) const;

Adds complex Value to all calling object complex elements.

#NameTypeDescription
1Valueconst TCplx &
Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 5: TOpenCLMtxVec *Add(const double Value, int Index, int Len) const;

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

#NameTypeDescription
1Valueconst double
2Indexint
3Lenint
Remarks:

An exception is raised if array borders are overrun.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 6: TOpenCLMtxVec *Add(const TCplx &Value, int Index, int Len) const;

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

#NameTypeDescription
1Valueconst TCplx &
2Indexint
3Lenint
Remarks:

An exception is raised if array borders are overrun.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 7: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, const double Value) const;

Adds Value to the each element of the Vec object.

#NameTypeDescription
1VecTOpenCLMtxVec *
2Valueconst double
Remarks:

Stores the result in the calling object. Size and clVector::Complex properties of the calling object are set automatically.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 8: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, const TCplx &Value) const;

Adds complex Value to each element of the Vec object.

#NameTypeDescription
1VecTOpenCLMtxVec *
2Valueconst TCplx &
Remarks:

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

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 9: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, double Value, int VecIndex, int Index, int Len) const;

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

#NameTypeDescription
1VecTOpenCLMtxVec *
2Valuedouble
3VecIndexint
4Indexint
5Lenint
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. clVector::Complex property of the calling object is set implicitly.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 10: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, const TCplx &Value, int VecIndex, int Index, int Len) const;

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

#NameTypeDescription
1VecTOpenCLMtxVec *
2Valueconst TCplx &
3VecIndexint
4Indexint
5Lenint
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. clVector::Complex property of the calling object is set to True.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 11: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec) const;

Array addition.

#NameTypeDescription
1VecTOpenCLMtxVec *
Remarks:

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

See Also: clVector::Sub
Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 12: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, int VecIndex, int Index, int Len) const;

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

#NameTypeDescription
1VecTOpenCLMtxVec *
2VecIndexint
3Indexint
4Lenint
Remarks:

An exception is raised if array borders are overrun.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler