Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Scale(const Factor: TCplx): TOpenCLMtxVec; | Multiply all calling object elements with a complex Value in-place. |
| └ indexed: function Scale(const Factor: TCplx; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 2 | function Scale(const Factor: Double): TOpenCLMtxVec; | Multiply object elements with Value. |
| └ indexed: function Scale(const Factor: Double; Index: Integer; Len: Integer): TOpenCLMtxVec; |
Overload 1: function Scale(const Factor: TCplx): TOpenCLMtxVec;
Multiply all calling object elements with a complex Value in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Factor | TCplx | scalar |
Result: stored in self (calling object), returns self for chaining
Indexed: function Scale(const Factor: TCplx; Index: Integer; Len: Integer): TOpenCLMtxVec;
Multipy calling object elements [Index]..[Index+Len-1] with complex Value in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Factor | TCplx | scalar |
| 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 Scale(const Factor: Double): TOpenCLMtxVec;
Multiply object elements with Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Factor | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Multiply all calling object elements with Value in-place. This method is the same as the TOpenCLMtxVec.Mul method overloads multiplying with vector elements with a scalar.
var v: clVector;
begin
v.CopyFromArray(TSingleArray.Create(2,3,5)); // v = [2,3,5]
v.Scale(3); // v = [6,9,15]
end;
Indexed: function Scale(const Factor: Double; Index: Integer; Len: Integer): TOpenCLMtxVec;
Multipy calling object elements [Index]..[Index+Len-1] with Value in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Factor | Double | scalar |
| 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.