JsonFile.ReadMatrix Method

Definition

Namespace: Extreme.Data.Json
Assembly: Extreme.Data.Json (in Extreme.Data.Json.dll) Version: 3.1.1

Overload List

ReadMatrix<T>(Stream, JsonOptions) Reads a matrix from a stream in JSON format.
ReadMatrix<T>(String, JsonOptions) Reads a matrix from a file in JSON format.

JsonFile.ReadMatrix<T>(Stream, JsonOptions)

Reads a matrix from a stream in JSON format.
C#
public static Matrix<T> ReadMatrix<T>(
	Stream stream,
	JsonOptions options = null
)

Parameters

stream  Stream
A stream.
options  JsonOptions  (Optional)
A JsonOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the matrix.

Return Value

Matrix<T>
The matrix that was read from the stream pointed to by stream.

Remarks

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.

JsonFile.ReadMatrix<T>(String, JsonOptions)

Reads a matrix from a file in JSON format.
C#
public static Matrix<T> ReadMatrix<T>(
	string path,
	JsonOptions options = null
)

Parameters

path  String
The path to the file.
options  JsonOptions  (Optional)
A JsonOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the matrix.

Return Value

Matrix<T>
The data frame that was read from the file pointed to by path.

Remarks

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.

Exceptions

FileNotFoundException The specified file does not exist.

See Also