function AddProduct(const Vec1, Vec2: TOpenCLMtxVec): TOpenCLMtxVec; overload;
Add a product of two vectors.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | Vec2 | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
Result: stored in self (calling object), returns self for chaining
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.
Indexed: function AddProduct(const Vec1, Vec2: TOpenCLMtxVec; Vec1Index, Vec2Index, Index, Len: integer): TOpenCLMtxVec; overload;
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 | source TOpenCLVector or TOpenCLMatrix |
| 2 | Vec2 | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 3 | Vec1Index | integer | |
| 4 | Vec2Index | integer | |
| 5 | Index | integer | start index |
| 6 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
Remarks:
An exception is raised if array borders are overrun.