Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function SetVal(const Value: TCplx): TOpenCLMtxVec; | Set all calling object complex elements to complex Value. |
| └ indexed: function SetVal(const Value: TCplx; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 2 | function SetVal(const Value: Double): TOpenCLMtxVec; | Initialize elements to Value. |
| └ indexed: function SetVal(const Value: Double; Index: Integer; Len: Integer): TOpenCLMtxVec; |
Overload 1: function SetVal(const Value: TCplx): TOpenCLMtxVec;
Set all calling object complex elements to complex Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | scalar |
Result: stored in self (calling object), returns self for chaining
Indexed: function SetVal(const Value: TCplx; Index: Integer; Len: Integer): TOpenCLMtxVec;
Set calling object complex elements [Index]..[Index+Len-1] to complex Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | scalar |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
TOpenCLBase.Complex property of the calling object are set to true even before the call it was false. An exception is raised if calling object array borders are overrun/underrun.
Overload 2: function SetVal(const Value: Double): TOpenCLMtxVec;
Initialize elements to Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Set all calling object elements to Value. If the calling object is complex then the real part is set to Value and the imaginary is set to zero.
var a: clVector;
begin
a.Size(4,False);
a.SetVal(1); // a = [1,1,1,1]
end;
Indexed: function SetVal(const Value: Double; Index: Integer; Len: Integer): TOpenCLMtxVec;
Set all calling object elements [Index]..[Index+Len-1] to real Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | scalar |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
If the calling object is complex then the real part is set to Value and the imaginary is set to zero. An exception is raised if array borders are overrun/underrun.