Reads a vector from a stream in Matrix Market format.
Namespace:
Extreme.Data.Text
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
public static Vector<T> ReadVector<T>(
Stream stream,
TextOptions options = null
)
Public Shared Function ReadVector(Of T) (
stream As Stream,
Optional options As TextOptions = Nothing
) As Vector(Of T)
public:
generic<typename T>
static Vector<T>^ ReadVector(
Stream^ stream,
TextOptions^ options = nullptr
)
static member ReadVector :
stream : Stream *
?options : TextOptions
(* Defaults:
let _options = defaultArg options null
*)
-> Vector<'T>
Parameters
- stream
- Type: System.IOStream
A stream. - options (Optional)
- Type: Extreme.DataTextOptions
A TextOptions object
that specifies the options to use when reading the file.
Type Parameters
- T
- The element type of the vector.
Return Value
Type:
VectorTThe vector that was read from the stream
pointed to by
stream.
The element type of the stored vector does not have
to match the element type of the returned vector.
However, casting values from this type to
type T must succeed.
Reference