Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec SetVal(TCplx Value) | Set all calling object complex elements to complex Value. |
| └ indexed: TMtxVec SetVal(TCplx Value, Int32 Index, Int32 Len) | ||
| 2 | TMtxVec SetVal(Double Value) | Initialize elements to Value. |
| └ indexed: TMtxVec SetVal(Double Value, Int32 Index, Int32 Len) |
Overload 1: TMtxVec 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: TMtxVec 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.TMtxVec.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: TMtxVec 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.
Matrix a;
a.Size(1,4,false);
a.SetVal(1); // a = new double[] {1,1,1,1}
Indexed: TMtxVec 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.