Skip to content

MGroup.LinearAlgebra.Input

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

Array1DReader

Reads 1D arrays from files. Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Input.Array1DReader

Methods

Type Name Summary
Double[] ReadFile(String path) Reads the file at `` and returns an 1D array.

Array2DReader

Reads 2D arrays from files. Each row must be written on a different line of the file. Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Input.Array2DReader

Methods

Type Name Summary
Double[,] ReadFile(String path) Reads the file at `` and returns a 2D array.

CoordinateTextFileReader

Reads matrices that are written in files with coordinate format. In this format, the first line contains: numRows numCols numNonZeros. The previous '.' must not be included in the line. Each subsequent line contains a non-zero matrix entry defined as a triplet: rowIndex columnIndex value. The previous '.' must not be included in the line. Authors: Serafeim Bakalakos

public class MGroup.LinearAlgebra.Input.CoordinateTextFileReader

Methods

Type Name Summary
DokColMajor ReadFileAsDokColMajor(String path) Reads a general sparse matrix from the file specified by ``. Even if the matrix is symmetric, the file must contain both the upper and lower triangle.
DokRowMajor ReadFileAsDokRowMajor(String path) Reads a general sparse matrix from the file specified by ``. Even if the matrix is symmetric, the file must contain both the upper and lower triangle.
DokSymmetric ReadFileAsDokSymmetricColMajor(String path) Reads a symmetric sparse matrix from the file specified by ``. The file needs to contain only the upper or lower triangle.

SkylineMatrixReader

Reads the index and value arrays of a skyline matrix from separate files or a single one. Authors: George Stavroulakis

public class MGroup.LinearAlgebra.Input.SkylineMatrixReader

Static Methods

Type Name Summary
SkylineMatrix ReadFromFiles(String valuesPath, String diagonalOffsetsPath)
SkylineMatrix ReadFromSingleFile(String name)