RdataFile.ReadMatrix Method

Definition

Namespace: Extreme.Data.R
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0

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.

RdataFile.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.

RdataFile.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.

RdataFile.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.

RdataFile.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