Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, TCplx aScale) | Add each of Vec elements to corresponding elements in the calling object. |
| └ indexed: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, TCplx aScale, Int32 VecIndex, Int32 Index, Int32 Len) | ||
| 2 | TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, Double aScale) | Add each of Vec elements to corresponding elements in the calling object. |
| └ indexed: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, Double aScale, Int32 VecIndex, Int32 Index, Int32 Len) |
Overload 1: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, TCplx aScale)
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 Dew.Math.TOpenCLBase.Complex properties of the calling object are set implicitly to match the Vec object.
Indexed: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, TCplx aScale, Int32 VecIndex, Int32 Index, Int32 Len)
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 | Int32 | |
| 4 | Index | Int32 | start index |
| 5 | Len | Int32 | 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: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, Double aScale)
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 Dew.Math.TOpenCLBase.Complex properties of the calling object are set implicitly to match the Vec object.
Indexed: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, Double aScale, Int32 VecIndex, Int32 Index, Int32 Len)
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 | Int32 | |
| 4 | Index | Int32 | start index |
| 5 | Len | Int32 | 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.