#include <ProbabilitySparseMatrix.h>
Inheritance diagram for PLearn::ProbabilitySparseMatrix:


Public Member Functions | |
| ProbabilitySparseMatrix (int ny=0, int nx=0, string pname="pYX") | |
| void | resize (int ny, int nx) |
| int | nx () |
| int | ny () |
| void | rename (string new_name) |
| Set | computeX () |
| Set | computeY () |
| real | get (int y, int x) |
| bool | exists (int y, int x) |
| real | operator() (int y, int x) |
| void | incr (int y, int x, real increment=1) |
| const map< int, real > & | getPYx (int x, bool dont_raise_error=false) |
| const map< int, real > & | getPyX (int y) |
| map< int, real > | getPYxCopy (int x, bool dont_raise_error=false) |
| map< int, real > | getPyXCopy (int y) |
| void | setPYx (int x, const map< int, real > &pYx) |
| void | setPyX (int y, const map< int, real > &pyX) |
| void | set (int y, int x, real v, bool dont_warn_for_zero=false) |
| void | removeElem (int y, int x) |
| real | sumPYx (int x, Set Y) |
| real | sumPyX (int y, Set X) |
| real | sumPYx (int x) |
| real | sumPyX (int y) |
| void | clearElements () |
| void | clear () |
| void | removeRow (int y, Set X) |
| void | removeRow (int y) |
| void | removeColumn (int x) |
| int | size () |
| void | removeExtra (ProbabilitySparseMatrix &m) |
| void | fullPrint () |
| void | save (string filename) |
| void | load (string filename) |
| real * | getAsFullVector () |
| void | getAsMaxSizedVectors (int max_size, vector< pair< real *, int > > &vectors) |
| void | add (real *full_vector, int n_elems) |
| void | set (real *full_vector, int n_elems) |
| real | sumOfElements () |
Public Attributes | |
| Set | Y |
| Set | X |
| bool | raise_error |
| string | name |
Private Attributes | |
| RowMapSparseMatrix< real > | x2y |
| RowMapSparseMatrix< real > | y2x |
|
||||||||||||||||
|
Definition at line 38 of file ProbabilitySparseMatrix.h. References name, raise_error, and resize(). |
|
||||||||||||
|
Definition at line 418 of file ProbabilitySparseMatrix.h. |
|
|
Definition at line 240 of file ProbabilitySparseMatrix.h. References PLearn::RowMapSparseMatrix< real >::clear(), x2y, and y2x. Referenced by set(), PLearn::update(), and PLearn::updateAndClearCounts(). |
|
|
Definition at line 227 of file ProbabilitySparseMatrix.h. |
|
|
Definition at line 52 of file ProbabilitySparseMatrix.h. References PLearn::Set::clear(), PLearn::Set::insert(), nx(), sumPYx(), and X. Referenced by PLearn::update(), and PLearn::updateAndClearCounts(). |
|
|
Definition at line 65 of file ProbabilitySparseMatrix.h. References PLearn::Set::clear(), PLearn::Set::insert(), ny(), sumPyX(), and Y. Referenced by PLearn::update(), and PLearn::updateAndClearCounts(). |
|
||||||||||||
|
Definition at line 92 of file ProbabilitySparseMatrix.h. References exists(), x, and x2y. Referenced by exists(), removeExtra(), and PLearn::samePos(). |
|
|
Definition at line 310 of file ProbabilitySparseMatrix.h. |
|
||||||||||||
|
Definition at line 78 of file ProbabilitySparseMatrix.h. References get(), name, PLWARNING, raise_error, x, and x2y. Referenced by get(). |
|
|
Definition at line 344 of file ProbabilitySparseMatrix.h. References ny(), PLERROR, PLearn::RowMapSparseMatrix< real >::size(), and y2x. |
|
||||||||||||
|
Definition at line 367 of file ProbabilitySparseMatrix.h. References getAsMaxSizedVectors(), ny(), PLWARNING, PLearn::RowMapSparseMatrix< real >::size(), and y2x. Referenced by getAsMaxSizedVectors(). |
|
|
Definition at line 122 of file ProbabilitySparseMatrix.h. Referenced by getPyX(), and PLearn::samePos(). |
|
||||||||||||
|
Definition at line 115 of file ProbabilitySparseMatrix.h. References getPYx(), PLERROR, raise_error, x, and x2y. Referenced by PLearn::check_prob(), and getPYx(). |
|
|
Definition at line 135 of file ProbabilitySparseMatrix.h. References getPyXCopy(), and y2x. Referenced by getPyXCopy(). |
|
||||||||||||
|
Definition at line 127 of file ProbabilitySparseMatrix.h. References getPYxCopy(), PLERROR, raise_error, x, and x2y. Referenced by getPYxCopy(). |
|
||||||||||||||||
|
Definition at line 100 of file ProbabilitySparseMatrix.h. References incr(), x, and x2y. Referenced by incr(). |
|
|
Definition at line 338 of file ProbabilitySparseMatrix.h. References PLearn::RowMapSparseMatrix< real >::load(), x2y, and y2x. |
|
|
Definition at line 47 of file ProbabilitySparseMatrix.h. References PLearn::RowMapSparseMatrix< real >::length(), and x2y. Referenced by clearElements(), computeX(), fullPrint(), and PLearn::operator<<(). |
|
|
Definition at line 48 of file ProbabilitySparseMatrix.h. References PLearn::RowMapSparseMatrix< real >::length(), and y2x. Referenced by computeY(), fullPrint(), getAsFullVector(), getAsMaxSizedVectors(), PLearn::operator<<(), removeExtra(), and sumOfElements(). |
|
||||||||||||
|
Definition at line 99 of file ProbabilitySparseMatrix.h. References operator()(), and x. Referenced by operator()(). |
|
|
Definition at line 266 of file ProbabilitySparseMatrix.h. |
|
||||||||||||
|
Definition at line 172 of file ProbabilitySparseMatrix.h. References removeElem(), and x. Referenced by removeElem(). |
|
|
Definition at line 286 of file ProbabilitySparseMatrix.h. References PLearn::Set::begin(), PLearn::Set::clear(), PLearn::ConstSparseVec, PLearn::Set::end(), exists(), PLearn::Set::insert(), ny(), removeExtra(), PLearn::SetIterator, and x. Referenced by removeExtra(). |
|
|
Definition at line 253 of file ProbabilitySparseMatrix.h. |
|
||||||||||||
|
Definition at line 242 of file ProbabilitySparseMatrix.h. References PLearn::Set::begin(), PLearn::RowMapSparseMatrix< real >::clear(), PLearn::Set::end(), PLearn::SetIterator, x, x2y, and y2x. |
|
|
Definition at line 50 of file ProbabilitySparseMatrix.h. References name, and rename(). Referenced by rename(). |
|
||||||||||||
|
Definition at line 43 of file ProbabilitySparseMatrix.h. References PLearn::RowMapSparseMatrix< real >::resize(), x2y, and y2x. |
|
|
Definition at line 332 of file ProbabilitySparseMatrix.h. References PLearn::RowMapSparseMatrix< real >::save(), x2y, and y2x. |
|
||||||||||||
|
Definition at line 424 of file ProbabilitySparseMatrix.h. References clear(). |
|
||||||||||||||||||||
|
Definition at line 153 of file ProbabilitySparseMatrix.h. References name, PLWARNING, x, x2y, and y2x. Referenced by PLearn::update(), and PLearn::updateAndClearCounts(). |
|
||||||||||||
|
Definition at line 147 of file ProbabilitySparseMatrix.h. References setPyX(). Referenced by setPyX(). |
|
||||||||||||
|
Definition at line 141 of file ProbabilitySparseMatrix.h. Referenced by setPYx(). |
|
|
Definition at line 279 of file ProbabilitySparseMatrix.h. References PLWARNING, PLearn::RowMapSparseMatrix< real >::size(), x2y, and y2x. |
|
|
Definition at line 431 of file ProbabilitySparseMatrix.h. References ny(), PLearn::sum(), and y2x. |
|
|
Definition at line 214 of file ProbabilitySparseMatrix.h. References y2x. |
|
|
Definition at line 203 of file ProbabilitySparseMatrix.h. |
|
||||||||||||
|
Definition at line 190 of file ProbabilitySparseMatrix.h. References PLearn::Set::contains(), sumPyX(), x, and y2x. Referenced by computeY(), and sumPyX(). |
|
||||||||||||
|
Definition at line 177 of file ProbabilitySparseMatrix.h. References PLearn::Set::contains(), sumPYx(), x, and x2y. Referenced by computeX(), sumPYx(), PLearn::update(), and PLearn::updateAndClearCounts(). |
|
|
Definition at line 36 of file ProbabilitySparseMatrix.h. Referenced by get(), ProbabilitySparseMatrix(), rename(), and set(). |
|
|
Definition at line 35 of file ProbabilitySparseMatrix.h. Referenced by get(), getPYx(), getPYxCopy(), PLearn::operator<<(), and ProbabilitySparseMatrix(). |
|
|
Definition at line 33 of file ProbabilitySparseMatrix.h. Referenced by PLearn::check_prob(), computeX(), PLearn::update(), and PLearn::updateAndClearCounts(). |
|
|
Definition at line 28 of file ProbabilitySparseMatrix.h. Referenced by clear(), clearElements(), exists(), fullPrint(), get(), getPYx(), getPYxCopy(), incr(), load(), nx(), removeColumn(), removeRow(), resize(), save(), set(), size(), and sumPYx(). |
|
|
Definition at line 32 of file ProbabilitySparseMatrix.h. Referenced by computeY(), PLearn::samePos(), PLearn::update(), and PLearn::updateAndClearCounts(). |
|
|
Definition at line 29 of file ProbabilitySparseMatrix.h. Referenced by clear(), clearElements(), fullPrint(), getAsFullVector(), getAsMaxSizedVectors(), getPyX(), getPyXCopy(), load(), ny(), removeColumn(), removeRow(), resize(), save(), set(), size(), sumOfElements(), and sumPyX(). |
1.3.7