#include <DoubleAccessSparseMatrix.h>
Inheritance diagram for PLearn::DoubleAccessSparseMatrix< T >:
Public Member Functions | |
DoubleAccessSparseMatrix (int n_rows=0, int n_cols=0, string _name="<no-name>", int _mode=ROW_WISE, bool _double_access=false, T _null_elem=0) | |
virtual | ~DoubleAccessSparseMatrix () |
virtual void | resize (int n_rows, int n_cols) |
virtual void | clear () |
virtual void | clearRow (int i, bool force_synchro_if_double_accessible) |
virtual void | clearCol (int j, bool force_synchro_if_double_accessible) |
virtual void | clearElem (int i, int j) |
virtual T | get (int i, int j) |
virtual T | operator() (int i, int j) |
virtual bool | exists (int i, int j) |
virtual void | set (int i, int j, T value) |
virtual void | incr (int i, int j, T inc) |
virtual map< int, T > & | getRow (int i) |
virtual map< int, T > & | getCol (int j) |
virtual void | addRow (map< int, T > &row) |
virtual void | addCol (map< int, T > &col) |
virtual int | size () |
virtual T | sumRow (int i) |
virtual T | sumCol (int j) |
virtual T * | getAsCompressedVec () |
virtual void | getAsMaxSizedCompressedVecs (int max_size, vector< pair< T *, int > > &vectors) |
virtual void | addCompressedVec (T *compressed_vec, int n_elems) |
virtual void | setCompressedVec (T *compressed_vec, int n_elems) |
virtual T | sumOfElements () |
virtual int | getHeight () const |
virtual int | getWidth () const |
virtual void | setDoubleAccessible (bool da) |
virtual bool | isDoubleAccessible () |
virtual void | setMode (int new_mode) |
virtual int | getMode () |
virtual void | setName (string n) |
virtual string | getName () |
virtual void | write (PStream &out) const |
virtual void | read (PStream &in) |
virtual T | getNullElem () |
virtual string | getClassName () const |
Protected Attributes | |
vector< map< int, T > > | rows |
vector< map< int, T > > | cols |
string | name |
int | mode |
bool | double_access |
int | height |
int | width |
T | null_elem |
|
|
Definition at line 106 of file DoubleAccessSparseMatrix.h. |
|
|
Definition at line 501 of file DoubleAccessSparseMatrix_impl.h. References PLearn::DoubleAccessSparseMatrix< T >::incr(), and PLERROR. |
|
|
|
|
Definition at line 156 of file DoubleAccessSparseMatrix_impl.h. References PLearn::DoubleAccessSparseMatrix< T >::cols, COLUMN_WISE, PLearn::DoubleAccessSparseMatrix< T >::double_access, PLearn::DoubleAccessSparseMatrix< T >::mode, ROW_WISE, and PLearn::DoubleAccessSparseMatrix< T >::rows. Referenced by PLearn::DoubleAccessSparseMatrix< T >::set(). |
|
|
|
|
|
|
Reimplemented in PLearn::ProbSparseMatrix, and PLearn::SmoothedProbSparseMatrix. Definition at line 176 of file DoubleAccessSparseMatrix.h. Referenced by PLearn::DoubleAccessSparseMatrix< T >::read(), and PLearn::DoubleAccessSparseMatrix< T >::write(). |
|
|
Definition at line 154 of file DoubleAccessSparseMatrix.h. |
|
Definition at line 164 of file DoubleAccessSparseMatrix.h. |
|
Definition at line 168 of file DoubleAccessSparseMatrix.h. |
|
Definition at line 174 of file DoubleAccessSparseMatrix.h. |
|
|
Definition at line 156 of file DoubleAccessSparseMatrix.h. |
|
Definition at line 234 of file DoubleAccessSparseMatrix_impl.h. References PLearn::DoubleAccessSparseMatrix< T >::get(), and PLearn::DoubleAccessSparseMatrix< T >::null_elem. Referenced by PLearn::DoubleAccessSparseMatrix< T >::addCompressedVec(). |
|
Definition at line 160 of file DoubleAccessSparseMatrix.h. |
|
Definition at line 120 of file DoubleAccessSparseMatrix.h. |
|
|
|
|
Definition at line 509 of file DoubleAccessSparseMatrix_impl.h. References PLearn::DoubleAccessSparseMatrix< T >::clear(), and PLERROR. |
|
|
|
Definition at line 166 of file DoubleAccessSparseMatrix.h. |
|
|
Definition at line 374 of file DoubleAccessSparseMatrix_impl.h. References PLearn::DoubleAccessSparseMatrix< T >::cols, COLUMN_WISE, PLearn::DoubleAccessSparseMatrix< T >::double_access, PLearn::DoubleAccessSparseMatrix< T >::mode, PLERROR, and PLearn::sum(). |
|
|
Definition at line 357 of file DoubleAccessSparseMatrix_impl.h. References PLearn::DoubleAccessSparseMatrix< T >::double_access, PLearn::DoubleAccessSparseMatrix< T >::mode, PLERROR, ROW_WISE, PLearn::DoubleAccessSparseMatrix< T >::rows, and PLearn::sum(). |
|
|
|
|
|
|
Definition at line 90 of file DoubleAccessSparseMatrix.h. Referenced by PLearn::DoubleAccessSparseMatrix< T >::read(), and PLearn::DoubleAccessSparseMatrix< T >::write(). |
|
|
|