Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLMtxVec SetVal(TCplx Value) | Set all calling object complex elements to complex Value. |
| └ indexed: TOpenCLMtxVec SetVal(TCplx Value, Int32 Index, Int32 Len) | ||
| 2 | TOpenCLMtxVec SetVal(Double Value) | Initialize elements to Value. |
| └ indexed: TOpenCLMtxVec SetVal(Double Value, Int32 Index, Int32 Len) |
Overload 1: TOpenCLMtxVec SetVal(TCplx Value)
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: TOpenCLMtxVec SetVal(TCplx Value, Int32 Index, Int32 Len)
Set calling object complex elements [Index]..[Index+Len-1] to complex Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | scalar |
| 2 | Index | Int32 | start index |
| 3 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Dew.Math.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: TOpenCLMtxVec SetVal(Double Value)
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.
clMatrix a;
a.Size(4,false);
a.SetVal(1); // a = new double[] {1,1,1,1}
Indexed: TOpenCLMtxVec SetVal(Double Value, Int32 Index, Int32 Len)
Set all calling object elements [Index]..[Index+Len-1] to real Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | scalar |
| 2 | Index | Int32 | start index |
| 3 | Len | Int32 | 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.