Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, double aScale) const; | Add each of Vec elements to corresponding elements in the calling object. |
| 2 | TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, const TCplx &aScale) const; | Add each of Vec elements to corresponding elements in the calling object. |
| 3 | TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, double aScale, int VecIndex, int Index, int Len) const; | Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1]. |
| 4 | TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, const TCplx &aScale, int VecIndex, int Index, int Len) const; | Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1]. |
Overload 1: TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, double aScale) const;
Add each of Vec elements to corresponding elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec * | |
| 2 | aScale | double |
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.
Overload 2: TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, const TCplx &aScale) const;
Add each of Vec elements to corresponding elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec * | |
| 2 | aScale | const TCplx & |
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.
Overload 3: TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, double aScale, int VecIndex, int Index, int Len) const;
Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec * | |
| 2 | aScale | double | |
| 3 | VecIndex | int | |
| 4 | Index | int | |
| 5 | Len | int |
In addition, the following formula is being used:
result = result+ Cplx(aScale)*Vec
An exception is raised if array borders are overrun.
Overload 4: TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, const TCplx &aScale, int VecIndex, int Index, int Len) const;
Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec * | |
| 2 | aScale | const TCplx & | |
| 3 | VecIndex | int | |
| 4 | Index | int | |
| 5 | Len | int |
In addition, the following formula is being used:
result = result+ aScale*Vec
An exception is raised if array borders are overrun.