 | DoubleVectorParse(TextReader) Method |
Constructs a DoubleVector instance from the given text reader.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic static DoubleVector Parse(
TextReader reader
)
Public Shared Function Parse (
reader As TextReader
) As DoubleVector
public:
static DoubleVector^ Parse(
TextReader^ reader
)
static member Parse :
reader : TextReader -> DoubleVector
Parameters
- reader TextReader
- A text reader containing a string representation of a vector.
Return Value
DoubleVector
Remarks
The text representation within the reader must be of the form
[ v1 v2 v3 ... ]. The data elements can be in any format that is
supported by
Double.Parse( string ).
string s = "4.522 4.32 4.56 9.94333 -0.4 5.003";
DoubleVector v = DoubleVector.Parse( new StringReader( s ));
See Also