#include <SparseMatrix.h>

Public Member Functions | |
| void | canonicalize (void) |
| SparseCol | col (int c) const |
| int | filled (void) const |
| REAL_VALUE | getMaxValue () |
| bool | isColumnEmpty (int c) const |
| void | leftMult (const DenseVector &x, DenseVector &result) const |
| void | leftMult (const SparseVector &x, DenseVector &result) const |
| void | mult (const DenseVector &x, DenseVector &result) const |
| void | mult (const SparseVector &x, DenseVector &result) const |
| DenseVector * | mult (const SparseVector &x) const |
| DenseVector * | mult (const DenseVector &x) const |
| const vector< int > & | nonEmptyColumns () const |
| REAL_VALUE | operator() (int r, int c) const |
| void | push_back (int row, int col, REAL_VALUE value) |
| void | read (std::istream &in) |
| void | resize (int _size1, int _size2) |
| int | size1 (void) const |
| int | size2 (void) const |
| SparseMatrix (void) | |
| SparseMatrix (int _size1, int _size2) | |
| ostream & | write (std::ostream &out) const |
| virtual | ~SparseMatrix (void) |
Public Attributes | |
| vector< int > | cols |
| vector< int > | cols_start |
| vector< SparseVector_Entry > | data |
| int | size1_ |
| int | size2_ |
Private Member Functions | |
| int | colEnd (int index) const |
Friends | |
| class | DenseVector |
| class | SparseVector |
Definition at line 34 of file SparseMatrix.h.
| momdp::SparseMatrix::SparseMatrix | ( | void | ) | [inline] |
Definition at line 50 of file SparseMatrix.h.
| momdp::SparseMatrix::SparseMatrix | ( | int | _size1, |
| int | _size2 | ||
| ) | [inline] |
Definition at line 53 of file SparseMatrix.h.
| virtual momdp::SparseMatrix::~SparseMatrix | ( | void | ) | [inline, virtual] |
Definition at line 57 of file SparseMatrix.h.
| void momdp::SparseMatrix::canonicalize | ( | void | ) |
Definition at line 168 of file SparseMatrix.cpp.
| SparseCol momdp::SparseMatrix::col | ( | int | c | ) | const |
Definition at line 31 of file SparseMatrix.cpp.
| int momdp::SparseMatrix::colEnd | ( | int | index | ) | const [private] |
Definition at line 236 of file SparseMatrix.cpp.
| int momdp::SparseMatrix::filled | ( | void | ) | const [inline] |
Definition at line 67 of file SparseMatrix.h.
Definition at line 213 of file SparseMatrix.cpp.
| bool momdp::SparseMatrix::isColumnEmpty | ( | int | c | ) | const |
Definition at line 231 of file SparseMatrix.cpp.
| void momdp::SparseMatrix::leftMult | ( | const DenseVector & | x, |
| DenseVector & | result | ||
| ) | const |
Definition at line 116 of file SparseMatrix.cpp.
| void momdp::SparseMatrix::leftMult | ( | const SparseVector & | x, |
| DenseVector & | result | ||
| ) | const |
Definition at line 132 of file SparseMatrix.cpp.
| void momdp::SparseMatrix::mult | ( | const DenseVector & | x, |
| DenseVector & | result | ||
| ) | const |
Definition at line 49 of file SparseMatrix.cpp.
| void momdp::SparseMatrix::mult | ( | const SparseVector & | x, |
| DenseVector & | result | ||
| ) | const |
Definition at line 85 of file SparseMatrix.cpp.
| DenseVector * momdp::SparseMatrix::mult | ( | const SparseVector & | x | ) | const |
Definition at line 79 of file SparseMatrix.cpp.
| DenseVector * momdp::SparseMatrix::mult | ( | const DenseVector & | x | ) | const |
Definition at line 43 of file SparseMatrix.cpp.
| const vector< int > & momdp::SparseMatrix::nonEmptyColumns | ( | ) | const |
Definition at line 227 of file SparseMatrix.cpp.
| REAL_VALUE momdp::SparseMatrix::operator() | ( | int | r, |
| int | c | ||
| ) | const |
Definition at line 8 of file SparseMatrix.cpp.
| void momdp::SparseMatrix::push_back | ( | int | row, |
| int | col, | ||
| REAL_VALUE | value | ||
| ) |
Definition at line 153 of file SparseMatrix.cpp.
| void momdp::SparseMatrix::read | ( | std::istream & | in | ) |
Definition at line 179 of file SparseMatrix.cpp.
| void momdp::SparseMatrix::resize | ( | int | _size1, |
| int | _size2 | ||
| ) |
Definition at line 144 of file SparseMatrix.cpp.
| int momdp::SparseMatrix::size1 | ( | void | ) | const [inline] |
Definition at line 65 of file SparseMatrix.h.
| int momdp::SparseMatrix::size2 | ( | void | ) | const [inline] |
Definition at line 66 of file SparseMatrix.h.
| std::ostream & momdp::SparseMatrix::write | ( | std::ostream & | out | ) | const |
Definition at line 198 of file SparseMatrix.cpp.
friend class DenseVector [friend] |
Definition at line 37 of file SparseMatrix.h.
friend class SparseVector [friend] |
Definition at line 36 of file SparseMatrix.h.
| vector< int > momdp::SparseMatrix::cols |
Definition at line 42 of file SparseMatrix.h.
| vector< int > momdp::SparseMatrix::cols_start |
Definition at line 41 of file SparseMatrix.h.
| vector< SparseVector_Entry > momdp::SparseMatrix::data |
Definition at line 39 of file SparseMatrix.h.
Definition at line 40 of file SparseMatrix.h.
Definition at line 40 of file SparseMatrix.h.