Public Member Functions | |
MatrixVectorReader (Reader in) | |
MatrixVectorReader (Reader in, int sz) | |
void | add (int num, int[] indices) |
MatrixInfo | readMatrixInfo () throws IOException |
VectorInfo | readVectorInfo () throws IOException |
boolean | hasInfo () throws IOException |
String[] | readComments () throws IOException |
MatrixSize | readMatrixSize (MatrixInfo info) throws IOException |
MatrixSize | readArraySize () throws IOException |
MatrixSize | readCoordinateSize () throws IOException |
VectorSize | readVectorSize (VectorInfo info) throws IOException |
VectorSize | readVectorArraySize () throws IOException |
VectorSize | readVectorCoordinateSize () throws IOException |
void | readArray (double[] data) throws IOException |
void | readArray (float[] data) throws IOException |
void | readArray (int[] data) throws IOException |
void | readArray (long[] data) throws IOException |
void | readArray (double[] dataR, double[] dataI) throws IOException |
void | readArray (float[] dataR, float[] dataI) throws IOException |
void | readCoordinate (int[] index, double[] data) throws IOException |
void | readCoordinate (int[] index, float[] data) throws IOException |
void | readCoordinate (int[] index, int[] data) throws IOException |
void | readCoordinate (int[] index, long[] data) throws IOException |
void | readCoordinate (int[] index, float[] dataR, float[] dataI) throws IOException |
void | readCoordinate (int[] index, double[] dataR, double[] dataI) throws IOException |
void | readPattern (int[] index) throws IOException |
void | readCoordinate (int[] row, int[] column, double[] data) throws IOException |
void | readCoordinate (int[] row, int[] column, float[] data) throws IOException |
void | readCoordinate (int[] row, int[] column, int[] data) throws IOException |
void | readCoordinate (int[] row, int[] column, long[] data) throws IOException |
void | readPattern (int[] row, int[] column) throws IOException |
void | readCoordinate (int[] row, int[] column, double[] dataR, double[] dataI) throws IOException |
void | readCoordinate (int[] row, int[] column, float[] dataR, float[] dataI) throws IOException |
int | getInt () throws IOException |
long | getLong () throws IOException |
double | getDouble () throws IOException |
float | getFloat () throws IOException |
Reads matrices and vectors
|
inline |
Constructor for MatrixVectorReader
in | A Reader |
|
inline |
Constructor for MatrixVectorReader
in | A Reader |
sz | Input buffer size |
|
inline |
Shifts the indices. Useful for converting between 0- and 1-based indicing.
num | Added to every index |
indices | Indices to shift |
|
inline |
Reads a double
Referenced by Jpetra.MatrixMarketIO.MatrixVectorReader.readArray(), and Jpetra.MatrixMarketIO.MatrixVectorReader.readCoordinate().
|
inline |
Reads a float
Referenced by Jpetra.MatrixMarketIO.MatrixVectorReader.readArray(), and Jpetra.MatrixMarketIO.MatrixVectorReader.readCoordinate().
|
inline |
Reads an integer
Referenced by Jpetra.MatrixMarketIO.MatrixVectorReader.readArray(), Jpetra.MatrixMarketIO.MatrixVectorReader.readArraySize(), Jpetra.MatrixMarketIO.MatrixVectorReader.readCoordinate(), Jpetra.MatrixMarketIO.MatrixVectorReader.readCoordinateSize(), Jpetra.MatrixMarketIO.MatrixVectorReader.readMatrixSize(), Jpetra.MatrixMarketIO.MatrixVectorReader.readPattern(), Jpetra.MatrixMarketIO.MatrixVectorReader.readVectorArraySize(), Jpetra.MatrixMarketIO.MatrixVectorReader.readVectorCoordinateSize(), and Jpetra.MatrixMarketIO.MatrixVectorReader.readVectorSize().
|
inline |
Reads a long
Referenced by Jpetra.MatrixMarketIO.MatrixVectorReader.readArray(), and Jpetra.MatrixMarketIO.MatrixVectorReader.readCoordinate().
|
inline |
Checks if a Matrix Market header is present ("%%MatrixMarket")
IOException |
|
inline |
Reads the array data
References Jpetra.MatrixMarketIO.MatrixVectorReader.getDouble().
|
inline |
Reads the array data
References Jpetra.MatrixMarketIO.MatrixVectorReader.getFloat().
|
inline |
Reads the array data
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads the array data
References Jpetra.MatrixMarketIO.MatrixVectorReader.getLong().
|
inline |
Reads the array data. The first array will contain real entries, while the second contain imaginary entries
References Jpetra.MatrixMarketIO.MatrixVectorReader.getDouble().
|
inline |
Reads the array data. The first array will contain real entries, while the second contain imaginary entries
References Jpetra.MatrixMarketIO.MatrixVectorReader.getFloat().
|
inline |
Reads in the size of an array matrix. Skips initial comments
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads all the comments (lines starting with ''). Positions the reader at the first non-comment line. Can only be called after reading the matrix or vector info. The comments read does not include '' or the newline
|
inline |
Reads a coordinate vector
References Jpetra.MatrixMarketIO.MatrixVectorReader.getDouble(), and Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads a coordinate vector
References Jpetra.MatrixMarketIO.MatrixVectorReader.getFloat(), and Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads a coordinate vector
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads a coordinate vector
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt(), and Jpetra.MatrixMarketIO.MatrixVectorReader.getLong().
|
inline |
Reads a coordinate vector. First data array contains real entries, and the second contains imaginary entries
References Jpetra.MatrixMarketIO.MatrixVectorReader.getFloat(), and Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads a coordinate vector. First data array contains real entries, and the second contains imaginary entries
References Jpetra.MatrixMarketIO.MatrixVectorReader.getDouble(), and Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads a coordinate matrix
References Jpetra.MatrixMarketIO.MatrixVectorReader.getDouble(), and Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads a coordinate matrix
References Jpetra.MatrixMarketIO.MatrixVectorReader.getFloat(), and Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads a coordinate matrix
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads a coordinate matrix
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt(), and Jpetra.MatrixMarketIO.MatrixVectorReader.getLong().
|
inline |
Reads a coordinate matrix. First data array contains real entries, and the second contains imaginary entries
References Jpetra.MatrixMarketIO.MatrixVectorReader.getDouble(), and Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads a coordinate matrix. First data array contains real entries, and the second contains imaginary entries
References Jpetra.MatrixMarketIO.MatrixVectorReader.getFloat(), and Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads in the size of a coordinate matrix. Skips initial comments
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads the matrix info for the Matrix Market exchange format. The line must consist of exactly 5 space-separated entries, the first being "%%MatrixMarket"
References Jpetra.MatrixMarketIO.MatrixInfo.GENERAL, and Jpetra.MatrixMarketIO.MatrixInfo.REAL.
|
inline |
Reads in the size of a matrix. Skips initial comments
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads a pattern vector
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads a pattern matrix
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads in the size of a dense vector. Skips initial comments
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads in the size of a coordinate vector. Skips initial comments
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().
|
inline |
Reads the vector info for the Matrix Market exchange format. The line must consist of exactly 4 space-separated entries, the first being "%%MatrixMarket"
References Jpetra.MatrixMarketIO.VectorInfo.REAL.
|
inline |
Reads in the size of a vector. Skips initial comments
References Jpetra.MatrixMarketIO.MatrixVectorReader.getInt().