Overload List
Overload 1: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2) const;
Add each of Vec2 elements to corresponding elements in Vec1.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TOpenCLMtxVec * | |
| 2 | Vec2 | TOpenCLMtxVec * |
The results are stored in the calling object. Size and clMatrix::Complex properties of the calling object are set implicitly to match Vec1 and Vec2 vectors.
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].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TOpenCLMtxVec * | |
| 2 | Vec2 | TOpenCLMtxVec * | |
| 3 | Vec1Index | int | |
| 4 | Vec2Index | int | |
| 5 | Index | int | |
| 6 | Len | int |
Store the results in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun.
Overload 3: TOpenCLMtxVec *Add(double Value) const;
Adds Value to object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | double |
Overload 4: TOpenCLMtxVec *Add(TCplx Value) const;
Adds complex Value to all calling object complex elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx |
Overload 5: TOpenCLMtxVec *Add(double Value, int Index, int Len) const;
Adds Value to calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | double | |
| 2 | Index | int | |
| 3 | Len | int |
An exception is raised if array borders are overrun.
Overload 6: TOpenCLMtxVec *Add(TCplx Value, int Index, int Len) const;
Adds complex Value to calling object complex elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | |
| 2 | Index | int | |
| 3 | Len | int |
An exception is raised if array borders are overrun.
Overload 7: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, double Value) const;
Adds Value to the each element of the Vec object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec * | |
| 2 | Value | double |
Stores the result in the calling object. Size and clMatrix::Complex properties of the calling object are set automatically.
Overload 8: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, TCplx Value) const;
Adds complex Value to each element of the Vec object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec * | |
| 2 | Value | TCplx |
Store the result to the calling object. Size property of the calling object is set automatically. clMatrix::Complex property of the calling object is set to True.
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].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec * | |
| 2 | Value | double | |
| 3 | VecIndex | int | |
| 4 | Index | int | |
| 5 | Len | int |
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. clMatrix::Complex property of the calling object is set implicitly.
Overload 10: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec, 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].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec * | |
| 2 | Value | TCplx | |
| 3 | VecIndex | int | |
| 4 | Index | int | |
| 5 | Len | int |
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. clMatrix::Complex property of the calling object is set to True.
Overload 11: TOpenCLMtxVec *Add(TOpenCLMtxVec *Vec) const;
Array addition.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec * |
Add each of Vec elements to corresponding elements in the calling object.
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].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec * | |
| 2 | VecIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
An exception is raised if array borders are overrun.