DelimitedTextFile.ReadComplexMatrix Method

Definition

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

Overload List

ReadComplexMatrix<T>(Stream, DelimitedTextOptions) Reads a complex matrix from a stream in delimited text format.
ReadComplexMatrix<T>(String, DelimitedTextOptions) Reads a complex matrix from a file in delimited text format.

ReadComplexMatrix<T>(Stream, DelimitedTextOptions)

Reads a complex matrix from a stream in delimited text format.
C#
public static Matrix<Complex<T>> ReadComplexMatrix<T>(
	Stream stream,
	DelimitedTextOptions options = null
)

Parameters

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

Type Parameters

T
The element type of the matrix.

Return Value

Matrix<Complex<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.

ReadComplexMatrix<T>(String, DelimitedTextOptions)

Reads a complex matrix from a file in delimited text format.
C#
public static Matrix<Complex<T>> ReadComplexMatrix<T>(
	string path,
	DelimitedTextOptions options = null
)

Parameters

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

Type Parameters

T
The element type of the matrix.

Return Value

Matrix<Complex<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