MatlabFile.ReadVectors Method

Definition

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

Overload List

ReadVectors<T>(Stream, IEnumerable<String>, Boolean) Reads the specified vectors from a stream.
ReadVectors<T>(String, IEnumerable<String>, Boolean) Reads the specified vectors from a Matlab® data file.

ReadVectors<T>(Stream, IEnumerable<String>, Boolean)

Reads the specified vectors from a stream.
C#
public static Dictionary<string, Vector<T>> ReadVectors<T>(
	Stream stream,
	IEnumerable<string> names,
	bool strict = true
)

Parameters

stream  Stream
The stream to read from.
names  IEnumerable<String>
A sequence of names of the vectors to read.
strict  Boolean  (Optional)
Specifies whether the element type should be matched exactly (true, the default), or whether conversions are allowed (false).

Type Parameters

T

Return Value

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

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

Reads the specified vectors from a Matlab® data file.
C#
public static Dictionary<string, Vector<T>> ReadVectors<T>(
	string path,
	IEnumerable<string> names,
	bool strict = true
)

Parameters

path  String
The file to read from.
names  IEnumerable<String>
A sequence of names of the vectors to read.
strict  Boolean  (Optional)
Specifies whether the element type should be matched exactly (true, the default), or whether conversions are allowed (false).

Type Parameters

T

Return Value

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

See Also