MtxExpr.StringsToValues Method

Overload List

#SignatureDescription
1Vector StringsToValues(TStrings aList)Converts a list of strings to vector.
2Matrix StringsToValues(TStrings aList, Int32 ListIndex, Int32 ListLen, Int32 Row, Int32 Col, String Delimiter)Converts strings to values.
3Matrix StringsToValues(TStrings aList, String Delimiter)Converts strings to values.
4Vector 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.

#NameTypeDescription
1aListTStrings

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.

#NameTypeDescription
1aListTStrings
2ListIndexInt32
3ListLenInt32
4RowInt32
5ColInt32
6DelimiterString

Returns: Matrix

Remarks:

Internally calls Dew.Math.Matrix.StringsToValues

Overload 3: Matrix StringsToValues(TStrings aList, String Delimiter)

Converts strings to values.

#NameTypeDescription
1aListTStrings
2DelimiterString

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.

#NameTypeDescription
1aListTStrings
2ListIndexInt32
3IndexInt32start index
4LenInt32element count

Returns: Vector

Remarks:

Internally calls Dew.Math.Vector.StringsToValues