#include <SparseMatrix.h>
Inheritance diagram for RMSparseMatrix::

Public Methods | |
| RMSparseMatrix (void) | |
| Empty constructor. | |
| RMSparseMatrix (int nrow, int ncol, int nnzero) | |
| Construct the matrix and resize the internal data. | |
| virtual | ~RMSparseMatrix () |
| Dummy virtual destructor. | |
| void | initialize (int nrow, int ncol, int nnzero) |
| Setup a SparseMatrix that will be filled in later. | |
| void | resize (const int rowndx, const int rowlen) |
| Resize the rowndx-th row to length rowlen. | |
| T & | operator() (const int row, const int col) |
| Returns the value of the element at the row-th row and col-th column. | |
| const T & | operator() (const int row, const int col) const |
| Returns the value of the element at the row-th row and col-th column. | |
| int | adjoinRow (int count, int *colPosition, T *value) |
| Add a row to the matrix. | |
| int | write (ostream &ostr) const |
| Write out the matrix to an output stream. | |
| int | read (istream &istr) |
| Read in the matrix from an input stream. | |
| void | convert (const CMSparseMatrix< T > &colmajor) |
| Convert a column-major matrix to a row-major matrix. | |
| void | delete_row (const int i) |
| Delete the i-th row. | |
| void | delete_col (const int i) |
| Delete the i-th column. | |
| void | delete_element (const int row, const int col) |
| Delete the (row,col)-th element. | |
Public Attributes | |
| friend | CMSparseMatrix<T> |
Friends | |
| UTILIB_API void | product (NumArray< T > &res, const RMSparseMatrix< T > &mat, const NumArray< T > &vec) |
Adapted from the RMatrix class of Kalyan S. Perumalla and Jeff T. Linderoth.