Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TVec SetIt(Boolean AComplex, Double[] A) | Sets vector values. |
| 2 | TVec SetIt(Double[] A) | Sets vector values (double). |
| 3 | TMtxVec SetIt(Int32 Index, Double[] A) | Sets object values. |
| └ indexed: TMtxVec SetIt(Int32 Index, Int32 aIndex, Int32 Len, Double[] A) |
Overload 1: TVec SetIt(Boolean AComplex, Double[] A)
Sets vector values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AComplex | Boolean | |
| 2 | A | Double[] |
Result: stored in self (calling object), returns self for chaining
SetIt makes the use of open array construction, to set the values of the calling vector. It gives you the possibility to pass large arrays of elements without having to declare constant arrays.
Sets the Dew.Math.TMtxVecBase.Length property of the calling vector to (High(A)+1) and the Dew.Math.TMtxVec.Complex property to AComplex. The elements of A array are copied to the calling vector. If AComplex is True then real parts of complex numbers are on even (0,2,4..) and imaginary parts on odd indexes (1,3,5,..).
TVec a;
MtxVec.CreateIt(out a);
try
{
a.SetIt(false,new double[] {1,2,3,4}); // a = new double[] {1,2,3,4}
}
finally
{
MtxVec.FreeIt(ref a);
}
Overload 2: TVec SetIt(Double[] A)
Sets vector values (double).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | A | Double[] |
Result: stored in self (calling object), returns self for chaining
Does not change the Dew.Math.TMtxVecBase.Length or Dew.Math.TMtxVec.Complex properties of the calling vector, but it does check for array overrun. The elements of A array are copied to the calling vector, starting at index 0. If the calling vector is complex then real parts of complex numbers are on even (0,2,4..)and imaginary parts on odd indexes.(1,3,5,..)
Overload 3: TMtxVec SetIt(Int32 Index, Double[] A)
Sets object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Int32 | start index |
| 2 | A | Double[] |
Result: stored in self (calling object), returns self for chaining
Set object values. Method call does not change object's size or Dew.Math.TMtxVec.Complex property, but it does check for array overrun. The elements of A array are copied to the calling object elements, starting at Index. If the calling object is complex, then real parts of complex numbers are on even (0,2,4..) and imaginary parts on odd indexes.(1,3,5,..).
Indexed: TMtxVec SetIt(Int32 Index, Int32 aIndex, Int32 Len, Double[] A)
The elements of A array, starting at aIndex, are copied to the calling object elements, starting at Index.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Int32 | start index |
| 2 | aIndex | Int32 | |
| 3 | Len | Int32 | element count |
| 4 | A | Double[] |
Result: stored in self (calling object), returns self for chaining
If the calling object is complex, then real parts of complex numbers in the A array are on even (0,2,4..) and imaginary parts on odd indexes.(1,3,5,..).