MatrixMarketFile.Write Method

Definition

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

Overload List

Write<T>(Stream, Matrix<T>, TextOptions) Writes a matrix from a stream in delimited text format.
Write<T>(Stream, Matrix<Complex<T>>, TextOptions) Writes a complex matrix from a stream in delimited text format.
Write<T>(Stream, Vector<T>, TextOptions) Writes a vector from a stream in delimited text format.
Write<T>(Stream, Vector<Complex<T>>, TextOptions) Writes a complex vector from a stream in delimited text format.
Write<T>(String, Matrix<T>, TextOptions) Writes a matrix to a file in delimited text format.
Write<T>(String, Matrix<Complex<T>>, TextOptions) Writes a complex matrix to a file in delimited text format.
Write<T>(String, Vector<T>, TextOptions) Writes a vector to a file in delimited text format.
Write<T>(String, Vector<Complex<T>>, TextOptions) Writes a complex vector to a file in delimited text format.

MatrixMarketFile.Write<T>(Stream, Matrix<T>, TextOptions)

Writes a matrix from a stream in delimited text format.
C#
public static void Write<T>(
	Stream stream,
	Matrix<T> matrix,
	TextOptions options = null
)

Parameters

stream  Stream
A stream.
matrix  Matrix<T>
The matrix to write to the stream.
options  TextOptions  (Optional)
A TextOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the matrix.

MatrixMarketFile.Write<T>(Stream, Matrix<Complex<T>>, TextOptions)

Writes a complex matrix from a stream in delimited text format.
C#
public static void Write<T>(
	Stream stream,
	Matrix<Complex<T>> matrix,
	TextOptions options = null
)

Parameters

stream  Stream
A stream.
matrix  Matrix<Complex<T>>
The matrix to write to the stream.
options  TextOptions  (Optional)
A TextOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the matrix.

MatrixMarketFile.Write<T>(Stream, Vector<T>, TextOptions)

Writes a vector from a stream in delimited text format.
C#
public static void Write<T>(
	Stream stream,
	Vector<T> vector,
	TextOptions options = null
)

Parameters

stream  Stream
A stream.
vector  Vector<T>
The vector to write to the stream.
options  TextOptions  (Optional)
A TextOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the vector.

MatrixMarketFile.Write<T>(Stream, Vector<Complex<T>>, TextOptions)

Writes a complex vector from a stream in delimited text format.
C#
public static void Write<T>(
	Stream stream,
	Vector<Complex<T>> vector,
	TextOptions options = null
)

Parameters

stream  Stream
A stream.
vector  Vector<Complex<T>>
The vector to write to the stream.
options  TextOptions  (Optional)
A TextOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the vector.

MatrixMarketFile.Write<T>(String, Matrix<T>, TextOptions)

Writes a matrix to a file in delimited text format.
C#
public static void Write<T>(
	string path,
	Matrix<T> matrix,
	TextOptions options = null
)

Parameters

path  String
The path to the file.
matrix  Matrix<T>
The matrix to write to the file.
options  TextOptions  (Optional)
A TextOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the matrix.

Exceptions

FileNotFoundException The specified file does not exist.

MatrixMarketFile.Write<T>(String, Matrix<Complex<T>>, TextOptions)

Writes a complex matrix to a file in delimited text format.
C#
public static void Write<T>(
	string path,
	Matrix<Complex<T>> matrix,
	TextOptions options = null
)

Parameters

path  String
The path to the file.
matrix  Matrix<Complex<T>>
The matrix to write to the file.
options  TextOptions  (Optional)
A TextOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the matrix.

Exceptions

FileNotFoundException The specified file does not exist.

MatrixMarketFile.Write<T>(String, Vector<T>, TextOptions)

Writes a vector to a file in delimited text format.
C#
public static void Write<T>(
	string path,
	Vector<T> vector,
	TextOptions options = null
)

Parameters

path  String
The path to the file.
vector  Vector<T>
The vector to write to the file.
options  TextOptions  (Optional)
A TextOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the vector.

Exceptions

FileNotFoundException The specified file does not exist.

MatrixMarketFile.Write<T>(String, Vector<Complex<T>>, TextOptions)

Writes a complex vector to a file in delimited text format.
C#
public static void Write<T>(
	string path,
	Vector<Complex<T>> vector,
	TextOptions options = null
)

Parameters

path  String
The path to the file.
vector  Vector<Complex<T>>
The vector to write to the file.
options  TextOptions  (Optional)
A TextOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the vector.

Exceptions

FileNotFoundException The specified file does not exist.

See Also