Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function AddScaled(const Vec: TOpenCLMtxVec; const aScale: TCplx): TOpenCLMtxVec; overload; | Add each of Vec elements to corresponding elements in the calling object. |
| └ indexed: function AddScaled(const Vec: TOpenCLMtxVec; const aScale: TCplx; VecIndex, Index, Len: integer): TOpenCLMtxVec; overload; | ||
| 2 | function AddScaled(const Vec: TOpenCLMtxVec; const aScale: double): TOpenCLMtxVec; overload; | Add each of Vec elements to corresponding elements in the calling object. |
| └ indexed: function AddScaled(const Vec: TOpenCLMtxVec; const aScale: double; VecIndex, Index, Len: integer): TOpenCLMtxVec; overload; |
Overload 1: function AddScaled(const Vec: TOpenCLMtxVec; const aScale: TCplx): TOpenCLMtxVec; overload;
Add each of Vec elements to corresponding elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | aScale | TCplx | 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 TOpenCLBase.Complex properties of the calling object are set implicitly to match the Vec object.
Indexed: function AddScaled(const Vec: TOpenCLMtxVec; const aScale: TCplx; VecIndex, Index, Len: integer): TOpenCLMtxVec; overload;
Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | aScale | TCplx | 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+ aScale*Vec
An exception is raised if array borders are overrun.
Overload 2: function AddScaled(const Vec: TOpenCLMtxVec; const aScale: double): TOpenCLMtxVec; overload;
Add each of Vec elements to corresponding elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 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 TOpenCLBase.Complex properties of the calling object are set implicitly to match the Vec object.
Indexed: function AddScaled(const Vec: TOpenCLMtxVec; const aScale: double; VecIndex, Index, Len: integer): TOpenCLMtxVec; overload;
Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 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.