Skip to content

MGroup.LinearAlgebra.Output

Dimitris Tsapetis edited this page Apr 17, 2019 · 1 revision

Array1DWriter

Writes all entries of a 1D array to Console or a file. The user may choose how to format and justify them. Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Output.Array1DWriter

Properties

Type Name Summary
Array1DFormat ArrayFormat Describes how the array entries will be separated.
INumericFormat NumericFormat Describes how the array entries will be formatted and justified.

Methods

Type Name Summary
void WriteToConsole(Double[] array) Writes the provided array to Console.
void WriteToConsole(Int32[] array) Writes the provided array to Console.
void WriteToFile(Double[] array, String path, Boolean append = False) Writes the provided array to the file at ``.
void WriteToFile(Int32[] array, String path, Boolean append = False) Writes the provided array to the file at ``.

Array2DWriter

Writes all entries of a 2D array to Console or a file. The user may choose how to format and justify them. Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Output.Array2DWriter

Properties

Type Name Summary
Array2DFormat ArrayFormat Describes how the array entries will be separated.
INumericFormat NumericFormat Describes how the array entries will be formatted and justified.

Methods

Type Name Summary
void WriteToConsole(Double[,] array) Writes the provided array to Console.
void WriteToFile(Double[,] array, String path, Boolean append = False) Writes the provided array to the file at ``.

BooleanMatrixWriter

Writes all entries of a MGroup.LinearAlgebra.Matrices.SignedBooleanMatrix matrix to Console or a file. Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Output.BooleanMatrixWriter

Methods

Type Name Summary
void WriteToConsole(SignedBooleanMatrix matrix) Writes the provided matrix to Console.
void WriteToFile(SignedBooleanMatrix matrix, String path, Boolean append = False) Writes the provided matrix to the file at ``.

CoordinateTextFileWriter

Writes non zero entries of a matrix to Console or a file, using the Coordinate Text File format. The user may choose how to format and justify them. For more information see https://math.nist.gov/MatrixMarket/formats.html#coord Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Output.CoordinateTextFileWriter

Properties

Type Name Summary
INumericFormat NumericFormat Describes how the matrix entries will be formatted and justified.

Methods

Type Name Summary
void WriteToConsole(ISparseMatrix matrix) Writes the non zero entries of the provided sparse matrix to Console.
void WriteToConsole(ISparseSymmetricMatrix matrix) Writes the non zero entries of the provided sparse matrix to Console.
void WriteToFile(ISparseMatrix matrix, String path, Boolean append = False) Writes the non zero entries of the provided sparse matrix to the file at ``.
void WriteToFile(ISparseSymmetricMatrix matrix, String path, Boolean append = False) Writes the non zero entries of the provided sparse matrix to the file at ``.

FullMatrixWriter

Writes all entries of a matrix to Console or a file. The user may choose how to format and justify them. Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Output.FullMatrixWriter

Properties

Type Name Summary
Array2DFormat ArrayFormat Describes how the matrix rows and columns will be separated.
INumericFormat NumericFormat Describes how the matrix entries will be formatted and justified.

Methods

Type Name Summary
void WriteToConsole(IIndexable2D matrix) Writes the provided matrix to Console.
void WriteToFile(IIndexable2D matrix, String path, Boolean append = False) Writes the provided matrix to the file at ``.

FullVectorWriter

Writes all entries of a vector to Console or a file. The user may choose how to format and justify them. Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Output.FullVectorWriter

Properties

Type Name Summary
Array1DFormat ArrayFormat Describes how the vector entries will be separated.
INumericFormat NumericFormat Describes how the vector entries will be formatted and justified.

Methods

Type Name Summary
void WriteToConsole(IIndexable1D vector) Writes the provided vector to Console.
void WriteToFile(IIndexable1D vector, String path, Boolean append = False) Writes the provided vector to the file at ``.

MatlabWriter

Writes the entries of a vector or matrix to Console or a file, following the formats used by Matlab. Auhors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Output.MatlabWriter

Properties

Type Name Summary
INumericFormat NumericFormat Describes how the vector and matrix entries will be formatted and justified.

Methods

Type Name Summary
void WriteToConsole(IIndexable1D vector) Writes the provided vector to Console.
void WriteToConsole(ISparseMatrix matrix) Writes the provided vector to Console.
void WriteToFile(IIndexable1D vector, String path, Boolean append = False) Writes the provided vector to the file at ``.
void WriteToFile(ISparseMatrix matrix, String path, Boolean append = False) Writes the provided vector to the file at ``.

MatrixMarketWriter

Writes a matrix to console or a file, using the Matrix Market format. For more information see https://math.nist.gov/MatrixMarket/formats.html Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Output.MatrixMarketWriter

RawArraysWriter

Writes the internal indexing and value arrays of a sparse matrix to Console or a file. The user may choose how to format and justify their entries. Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Output.RawArraysWriter

Properties

Type Name Summary
INumericFormat NumericFormat Describes how the array entries will be formatted and justified.

Methods

Type Name Summary
void WriteToConsole(ISparseMatrix matrix) Writes the internal arrays of the provided sparse matrix to Console.
void WriteToFile(ISparseMatrix matrix, String path, Boolean append = False) Writes the internal arrays of the provided sparse matrix to the file at ``.
void WriteToMultipleFiles(ISparseMatrix matrix, String pathBase, Boolean writeArrayLengthFirst = True) Writes each internal array of the provided sparse matrix to a different file. All these filenames have a common prefix, extracted from ``, and a suffix corresponding to the purpose of each array.

SparsityPatternWriter

Writes a boolean matrix with 1 corresponding to non zero entries and 0 corresponding to zero entries of a sparse matrix. Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Output.SparsityPatternWriter

Methods

Type Name Summary
void WriteToConsole(ISparsityPattern matrix) Writes the sparsity pattern of a matrix to Console.
void WriteToFile(ISparsityPattern matrix, String path, Boolean append = False) Writes the sparsity pattern of a matrix to the file at ``.

TriangularWriter

Write the only the upper or lower triangle of a matrix to console or a file. Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Output.TriangularWriter
Clone this wiki locally