Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Mul(const Value: TCplx): TOpenCLMtxVec; | Multiply all calling object elements with complex Value in-place. |
| └ indexed: function Mul(const Value: TCplx; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 2 | function Mul(const Vec: TOpenCLMtxVec): TOpenCLMtxVec; | Vector multiplication. |
| └ indexed: function Mul(const Vec: TOpenCLMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 3 | function Mul(const Vec: TOpenCLMtxVec; const Value: TCplx): TOpenCLMtxVec; | Multiply each element of Vec with complex Value. |
| └ indexed: function Mul(const Vec: TOpenCLMtxVec; const Value: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 4 | function Mul(const Vec1: TOpenCLMtxVec; const Vec2: TOpenCLMtxVec): TOpenCLMtxVec; | Multiply all Vec1 elements with corresponding Vec2 elements. |
| └ indexed: function Mul(const Vec1: TOpenCLMtxVec; const Vec2: TOpenCLMtxVec; Vec1Index: Integer; Vec2Index: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 5 | function Mul(const Vec: TOpenCLMtxVec; const Value: Double): TOpenCLMtxVec; | Multiply each element of Vec with Value. |
| └ indexed: function Mul(const Vec: TOpenCLMtxVec; const Value: Double; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 6 | function Mul(const Value: Double): TOpenCLMtxVec; | Multiply object elements with Value. |
| └ indexed: function Mul(const Value: Double; Index: Integer; Len: Integer): TOpenCLMtxVec; |
Overload 1: function Mul(const Value: TCplx): TOpenCLMtxVec;
Multiply all calling object elements with complex Value in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx |
Result: stored in self (calling object), returns self for chaining
Indexed: function Mul(const Value: TCplx; Index: Integer; Len: Integer): TOpenCLMtxVec;
Multipy calling object elements [Index]..[Index+Len-1] with complex Value in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun or underrun.
Overload 2: function Mul(const Vec: TOpenCLMtxVec): TOpenCLMtxVec;
Vector multiplication.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec |
Result: stored in self (calling object), returns self for chaining
Multiply each of Vec elements with corresponding elements in the calling object. Size and clVector.Complex property of the calling object are set automatically. The result is stored in the calling object.
Indexed: function Mul(const Vec: TOpenCLMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with calling object elements [Index]..[Index+Len-1] in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | VecIndex | Integer | |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if Vec and calling object clVector.Complex property do not match or if array borders are overrun/underrun.
Overload 3: function Mul(const Vec: TOpenCLMtxVec; const Value: TCplx): TOpenCLMtxVec;
Multiply each element of Vec with complex Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | Value | TCplx |
Result: stored in self (calling object), returns self for chaining
Store the result in the calling object. Size of the calling object is set automatically. clVector.Complex property of the calling object is set to True.
Indexed: function Mul(const Vec: TOpenCLMtxVec; const Value: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with complex Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | Value | TCplx | |
| 3 | VecIndex | Integer | |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Store the result in calling object elements [Index]..[Index+Len-1]. Size of the calling object is not changed. An exception is raised if array borders are overrun or underrun. clVector.Complex propertiy of the calling object is set to True.
Overload 4: function Mul(const Vec1: TOpenCLMtxVec; const Vec2: TOpenCLMtxVec): TOpenCLMtxVec;
Multiply all Vec1 elements with corresponding Vec2 elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TOpenCLMtxVec | |
| 2 | Vec2 | TOpenCLMtxVec |
Result: stored in self (calling object), returns self for chaining
Store the results in calling object. Size and clVector.Complex property of calling object are adjusted automatically to match those of Vec1 and Vec2. An exception is raised if Vec1 and Vec2 size and clVector.Complex property do not match.
Indexed: function Mul(const Vec1: TOpenCLMtxVec; const Vec2: TOpenCLMtxVec; Vec1Index: Integer; Vec2Index: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
Multiply Vec1 elements [Vec1Index]..[Vec1Index+Len-1] with Vec2 object elements [Vec2Index]..[Vec2Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TOpenCLMtxVec | |
| 2 | Vec2 | TOpenCLMtxVec | |
| 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
Store the results in calling object elements [Index]..[Index+Len-1]. Size and clVector.Complex properties of the calling object must be set explicitly. An exception is raised if array borders are overrun or underrun.
Overload 5: function Mul(const Vec: TOpenCLMtxVec; const Value: Double): TOpenCLMtxVec;
Multiply each element of Vec with Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | Value | Double |
Result: stored in self (calling object), returns self for chaining
Store the result in the calling object. Size and clVector.Complex properties of the calling object are adjusted automatically.
Indexed: function Mul(const Vec: TOpenCLMtxVec; const Value: Double; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | |
| 2 | Value | Double | |
| 3 | VecIndex | Integer | |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Store the result in calling object elements [Index]..[Index+Len-1]. Size of the calling object is not changed. An exception is raised if array borders are overrun or underrun. clVector.Complex propertiy of the calling object is set implicitly.
Overload 6: function Mul(const Value: Double): TOpenCLMtxVec;
Multiply object elements with Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double |
Result: stored in self (calling object), returns self for chaining
Multiplies all calling object elements with Value in-place.
var v: clVector;
begin
v.CopyFromArray(TSingleArray.Create(2,3,5)); // v = [2,3,5]
v.Mul(3); // v = [6,9,15]
end;
Indexed: function Mul(const Value: Double; Index: Integer; Len: Integer): TOpenCLMtxVec;
Multipy calling object elements [Index]..[Index+Len-1] with Value in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun or underrun.