Overload List
| # | Signature | Description |
|---|---|---|
| 1 | Vector StringsToValues(TStrings aList) | Converts a list of strings to vector. |
| 2 | Matrix StringsToValues(TStrings aList, Int32 ListIndex, Int32 ListLen, Int32 Row, Int32 Col, String Delimiter) | Converts strings to values. |
| 3 | Matrix StringsToValues(TStrings aList, String Delimiter) | Converts strings to values. |
| 4 | Vector StringsToValues(TStrings aList, Int32 ListIndex, Int32 Index, Int32 Len) | Converts a list of strings to vector. |
Overload 1: Vector StringsToValues(TStrings aList)
Converts a list of strings to vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aList | TStrings |
Returns: Vector
Remarks:
Internally calls Dew.Math.TVec.StringsToValues
Examples
TVec a;
TVec b;
MtxVec.CreateIt(out a, out b);
try
{
a.SetIt(false,new double[] {1,2,3,4});
a.cos;
b.Size(a);
b.SetVal(1);
a.Add(b);
Richedit1.Clear;
Memo1.Clear;
a.ValuesToStrings(Richedit1.Lines);
b.ValuesToStrings(Richedit1.Lines);
a.ValuesToStrings(Memo1.Lines);
b.ValuesToStrings(Memo1.Lines);
Memo1.Lines.SaveToFile(@"C:\Test.txt");
Memo1.Lines.LoadFromFile(@"C:\Test.txt");
a.StringsToValues(Memo1.Lines);
}
finally
{
MtxVec.FreeIt(ref a, ref b);
}
Overload 2: Matrix StringsToValues(TStrings aList, Int32 ListIndex, Int32 ListLen, Int32 Row, Int32 Col, String Delimiter)
Converts strings to values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aList | TStrings | |
| 2 | ListIndex | Int32 | |
| 3 | ListLen | Int32 | |
| 4 | Row | Int32 | |
| 5 | Col | Int32 | |
| 6 | Delimiter | String |
Returns: Matrix
Remarks:
Internally calls Dew.Math.Matrix.StringsToValues
Overload 3: Matrix StringsToValues(TStrings aList, String Delimiter)
Converts strings to values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aList | TStrings | |
| 2 | Delimiter | String |
Returns: Matrix
Remarks:
Internally calls Dew.Math.Matrix.StringsToValues
Examples
TMtx a;
TMtx b;
MtxVec.CreateIt(out a, out b);
try
{
a.SetIt(2,2,false,new double[] {1,2,3,4});
a.Cos;
b.Size(a);
b.SetVal(1);
a.Add(b);
Richedit1.Clear;
Memo1.Clear;
a.ValuesToStrings(Richedit1.Lines);
b.ValuesToStrings(Richedit1.Lines);
a.ValuesToStrings(Memo1.Lines);
b.ValuesToStrings(Memo1.Lines);
Memo1.Lines.SaveToFile(@"C:\Test.txt");
Memo1.Lines.LoadFromFile(@"C:\Test.txt");
a.StringsToValues(Memo1.Lines);
}
finally
{
MtxVec.FreeIt(ref a, ref b);
}
Overload 4: Vector StringsToValues(TStrings aList, Int32 ListIndex, Int32 Index, Int32 Len)
Converts a list of strings to vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aList | TStrings | |
| 2 | ListIndex | Int32 | |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Returns: Vector
Remarks:
Internally calls Dew.Math.Vector.StringsToValues