RdataFile.ReadMatrices Method

Definition

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

Overload List

ReadMatrices<T>(Stream, IEnumerable<String>) Reads the specified matrices from a stream.
ReadMatrices<T>(String, IEnumerable<String>, Boolean) Reads the specified matrices from a file.

ReadMatrices<T>(Stream, IEnumerable<String>)

Reads the specified matrices from a stream.
C#
public static Dictionary<string, Matrix<T>> ReadMatrices<T>(
	Stream stream,
	IEnumerable<string> names
)

Parameters

stream  Stream
The stream to read from.
names  IEnumerable<String>
A sequence of names of the matrices to read.

Type Parameters

T

Return Value

Dictionary<String, Matrix<T>>
A dictionary containing the matrices read from the stream using their name as the key.

ReadMatrices<T>(String, IEnumerable<String>, Boolean)

Reads the specified matrices from a file.
C#
public static Dictionary<string, Matrix<T>> ReadMatrices<T>(
	string path,
	IEnumerable<string> names,
	bool strict = false
)

Parameters

path  String
The file to read from.
names  IEnumerable<String>
A sequence of names of the matrices 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

Dictionary<String, Matrix<T>>
A dictionary containing the matrices read from the file using their name as the key.

See Also