Constructs a FloatVector instance from the given text reader.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static FloatVector Parse( TextReader reader ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Parse ( _ reader As TextReader _ ) As FloatVector |
| Visual C++ |
|---|
public: static FloatVector^ Parse( TextReader^ reader ) |
Parameters
- reader
- Type: System.IO..::.TextReader
A text reader containing a string representation of a vector.
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 ).
CopyC#
string s = "4.522 4.32 4.56 9.94333 -0.4 5.003"; FloatVector v = FloatVector.Parse( new StringReader( s ));