Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLMtxVec *AddProduct(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2); | Add a product of two vectors. |
| 2 | TOpenCLMtxVec *AddProduct(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2, int Vec1Index, int Vec2Index, int Index, int Len); | Multiply Vec1 elements [Vec1Index]..[Vec1Index+Len-1] with Vec2 elements [Vec2Index]..[Vec2Index+Len-1] and add the results to the calling object elements [Index]..[Index+Len-1]. |
Overload 1: TOpenCLMtxVec *AddProduct(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2);
Add a product of two vectors.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TOpenCLMtxVec * | |
| 2 | Vec2 | TOpenCLMtxVec * |
Remarks:
Multiply Vec1 elements with coresponding Vec2 elements and add the result to the calling vector. The size of the calling vector is set implicitly.
See Also: TOpenCLVector::Mul, TOpenCLVector::Add
Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler
Overload 2: TOpenCLMtxVec *AddProduct(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2, int Vec1Index, int Vec2Index, int Index, int Len);
Multiply Vec1 elements [Vec1Index]..[Vec1Index+Len-1] with Vec2 elements [Vec2Index]..[Vec2Index+Len-1] and add the results to the calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TOpenCLMtxVec * | |
| 2 | Vec2 | TOpenCLMtxVec * | |
| 3 | Vec1Index | int | |
| 4 | Vec2Index | int | |
| 5 | Index | int | |
| 6 | Len | int |
Remarks:
An exception is raised if array borders are overrun.
Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler