FixedWidthTextFile.ReadMatrix<T>(Stream, Int32[]) Method

Reads a matrix from a stream in fixed-width text format.

Definition

Namespace: Extreme.Data.Text
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
C#
public static Matrix<T> ReadMatrix<T>(
	Stream stream,
	int[] columnBreaks
)

Parameters

stream  Stream
A stream.
columnBreaks  Int32[]
An integer array containing the zero-based indexes of the column breaks on each row.

Type Parameters

T
The element type of the matrix.

Return Value

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

See Also