#include <matrix-stream.h>
Public Types | |
typedef Field::Element | Element |
Public Methods | |
MatrixStream (const Field &fld, istream &i, char delim= '\n') | |
~MatrixStream () | |
bool | nextTriple (int &, int &, Element &) |
bool | getRows (int &) |
bool | getColumns (int &) |
bool | getDimensions (int &, int &) |
MatrixStreamError | getError () const |
int | getLineNumber () const |
const Field & | getField () const |
bool | addChars (istream **eofReached=NULL) |
const char * | getFormat () const |
bool | isSparse () const |
bool | isDense () const |
|
|
|
Constructor from an input stream.
|
|
Destructor |
|
Get characters from in and give them to the MatrixStreamReaders. Called by the moreData() function of MatrixStreamReader.
|
|
Get the number of columns in the matrix and store it in the given int.
|
|
Get the number of rows and columns in the matrix and store them in the given ints.
|
|
Get the current state of the stream. Especially useful if called after one of the four above operations on failure to get some information on what caused the failure. |
|
Get the Field that was passed to the constructor. |
|
Get a brief description of the format of the matrix being read. |
|
If there is a reader in the GOOD state, get the line number it is on. Otherwise, get the line number on which the last error occurred. |
|
Get the number of rows in the matrix and store it in the given int.
|
|
Tell if the matrix being read is dense.
|
|
Tell if the matrix being read is sparse.
|
|
Read the next triple of row index, column index, value and store it in the three referenced elements.
|