Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Add(const Value: TCplx): TOpenCLMtxVec; | Adds complex Value to all calling object complex elements. |
| └ indexed: function Add(const Value: TCplx; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 2 | function Add(const Vec: TOpenCLMtxVec): TOpenCLMtxVec; | Array addition. |
| └ indexed: function Add(const Vec: TOpenCLMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 3 | function Add(const Vec: TOpenCLMtxVec; const Value: TCplx): TOpenCLMtxVec; | Adds complex Value to each element of the Vec object. |
| └ indexed: function Add(const Vec: TOpenCLMtxVec; const Value: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 4 | function Add(const Vec1: TOpenCLMtxVec; const Vec2: TOpenCLMtxVec): TOpenCLMtxVec; | Add each of Vec2 elements to corresponding elements in Vec1. |
| └ indexed: function Add(const Vec1: TOpenCLMtxVec; const Vec2: TOpenCLMtxVec; Vec1Index: Integer; Vec2Index: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 5 | function Add(const Vec: TOpenCLMtxVec; const Value: Double): TOpenCLMtxVec; | Adds Value to the each element of the Vec object. |
| └ indexed: function Add(const Vec: TOpenCLMtxVec; Value: Double; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 6 | function Add(const Value: Double): TOpenCLMtxVec; | Adds Value to object elements. |
| └ indexed: function Add(const Value: Double; Index: Integer; Len: Integer): TOpenCLMtxVec; |
Overload 1: function Add(const Value: TCplx): TOpenCLMtxVec;
Adds complex Value to all calling object complex elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx |
Result: stored in self (calling object), returns self for chaining
Indexed: function Add(const Value: TCplx; Index: Integer; Len: Integer): TOpenCLMtxVec;
Adds complex Value to calling object complex elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun.
Overload 2: function Add(const Vec: TOpenCLMtxVec): TOpenCLMtxVec;
Array addition.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec |
Result: stored in self (calling object), returns self for chaining
Add each of Vec elements to corresponding elements in the calling object.
Indexed: function Add(const Vec: TOpenCLMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
Add Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | VecIndex | Integer | |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun.
Overload 3: function Add(const Vec: TOpenCLMtxVec; const Value: TCplx): TOpenCLMtxVec;
Adds complex Value to each element of the Vec object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | Value | TCplx |
Result: stored in self (calling object), returns self for chaining
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.
Indexed: function Add(const Vec: TOpenCLMtxVec; const Value: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
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 | Integer | |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
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.
Overload 4: function Add(const Vec1: TOpenCLMtxVec; const Vec2: TOpenCLMtxVec): TOpenCLMtxVec;
Add each of Vec2 elements to corresponding elements in Vec1.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TOpenCLMtxVec | |
| 2 | Vec2 | TOpenCLMtxVec |
Result: stored in self (calling object), returns self for chaining
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.
Indexed: function Add(const Vec1: TOpenCLMtxVec; const Vec2: TOpenCLMtxVec; Vec1Index: Integer; Vec2Index: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
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 | Integer | |
| 4 | Vec2Index | Integer | |
| 5 | Index | Integer | start index |
| 6 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Store the results in calling object elements [Index]..[Index+Len-1]. An exception is raised if true and array borders are overrun.
Overload 5: function Add(const Vec: TOpenCLMtxVec; const Value: Double): TOpenCLMtxVec;
Adds Value to the each element of the Vec object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | Value | Double |
Result: stored in self (calling object), returns self for chaining
Stores the result in the calling object. Size and clVector.Complex properties of the calling object are set automatically.
Indexed: function Add(const Vec: TOpenCLMtxVec; Value: Double; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
Adds Value to each element of Vec object in range [VecIndex]..[VecIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | Value | Double | scalar |
| 3 | VecIndex | Integer | |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
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.
Overload 6: function Add(const Value: Double): TOpenCLMtxVec;
Adds Value to object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double |
Result: stored in self (calling object), returns self for chaining
Indexed: function Add(const Value: Double; Index: Integer; Len: Integer): TOpenCLMtxVec;
Adds Value to calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun.