RdataFile.ReadMatrix Method

Definition

Namespace: Numerics.NET.Data.R
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.3

Overload List

ReadMatrix<T>(Stream) Reads a matrix from the specified file.
ReadMatrix<T>(Stream, String) Reads the matrix with the specified name from a stream.
ReadMatrix<T>(String, Boolean) Reads a matrix from the specified file.
ReadMatrix<T>(String, String, Boolean) Reads the matrix with the specified name from a file.

ReadMatrix<T>(Stream)

Reads a matrix from the specified file.
C#
public static Matrix<T> ReadMatrix<T>(
	Stream stream
)

Parameters

stream  Stream
The stream to read from.

Type Parameters

T

Return Value

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

ReadMatrix<T>(Stream, String)

Reads the matrix with the specified name from a stream.
C#
public static Matrix<T> ReadMatrix<T>(
	Stream stream,
	string name
)

Parameters

stream  Stream
The stream to read from.
name  String
The name of the matrix to read.

Type Parameters

T

Return Value

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

ReadMatrix<T>(String, Boolean)

Reads a matrix from the specified file.
C#
public static Matrix<T> ReadMatrix<T>(
	string path,
	bool strict
)

Parameters

path  String
The file to read from.
strict  Boolean
Specifies whether the element type should be matched exactly (true), or whether conversions are allowed (false).

Type Parameters

T

Return Value

Matrix<T>
The matrix that was read from the file.

ReadMatrix<T>(String, String, Boolean)

Reads the matrix with the specified name from a file.
C#
public static Matrix<T> ReadMatrix<T>(
	string path,
	string name,
	bool strict = false
)

Parameters

path  String
The file to read from.
name  String
The name of the matrix to read.
strict  Boolean  (Optional)
Specifies whether the element type should be matched exactly (true), or whether conversions are allowed (false).

Type Parameters

T

Return Value

Matrix<T>
The matrix that was read from the file.

See Also