Reads a matrix from a stream in Matrix Market format.
Namespace: Extreme.Data.TextAssembly: Extreme.Data (in Extreme.Data.dll) Version: 1.0.16170.0 (1.0.16170.0)
public static Matrix<T> ReadMatrix<T>(
Stream stream,
TextOptions options = null
)
Public Shared Function ReadMatrix(Of T) (
stream As Stream,
Optional options As TextOptions = Nothing
) As Matrix(Of T)
public:
generic<typename T>
static Matrix<T>^ ReadMatrix(
Stream^ stream,
TextOptions^ options = nullptr
)
static member ReadMatrix :
stream : Stream *
?options : TextOptions
(* Defaults:
let _options = defaultArg options null
*)
-> Matrix<'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 matrix.
Return Value
Type:
MatrixTThe matrix that was read from the stream
pointed to by
stream.
The element type of the stored matrix does not have
to match the element type of the returned matrix.
However, casting values from this type to
type T must succeed.
Numerical Libraries
Supported in: 6.0
Reference