Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function AddScaled(const Vec: TOpenCLMtxVec; const aScale: TCplx): TOpenCLMtxVec; | Add each of Vec elements to corresponding elements in the calling object. |
| └ indexed: function AddScaled(const Vec: TOpenCLMtxVec; const aScale: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 2 | function AddScaled(const Vec: TOpenCLMtxVec; aScale: Double): TOpenCLMtxVec; | Add each of Vec elements to corresponding elements in the calling object. |
| └ indexed: function AddScaled(const Vec: TOpenCLMtxVec; aScale: Double; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; |
Overload 1: function AddScaled(const Vec: TOpenCLMtxVec; const aScale: TCplx): TOpenCLMtxVec;
Add each of Vec elements to corresponding elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | aScale | TCplx |
Result: stored in self (calling object), returns self for chaining
In addition, the following formula is being used:
result = result+ aScale*Vec
The results are stored in the calling object. Size and clVector.Complex properties of the calling object are set implicitly to match the Vec object.
Indexed: function AddScaled(const Vec: TOpenCLMtxVec; const aScale: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | aScale | TCplx | |
| 3 | VecIndex | Integer | |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
In addition, the following formula is being used:
result = result+ aScale*Vec
An exception is raised if array borders are overrun.
Overload 2: function AddScaled(const Vec: TOpenCLMtxVec; aScale: Double): TOpenCLMtxVec;
Add each of Vec elements to corresponding elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | aScale | Double | scalar |
Result: stored in self (calling object), returns self for chaining
In addition, the following formula is being used:
result = result+ aScale*Vec
The results are stored in the calling object. Size and clVector.Complex properties of the calling object are set implicitly to match the Vec object.
Indexed: function AddScaled(const Vec: TOpenCLMtxVec; aScale: Double; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | aScale | 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
In addition, the following formula is being used:
result = result+ Cplx(aScale)*Vec
An exception is raised if array borders are overrun.