#include <transportationsolver.hxx>
Classes | |
struct | bufferElement |
class | iterator_template |
struct | listElement |
Public Types | |
typedef std::list< listElement > | List1D |
typedef iterator_template < typename List1D::iterator, T > | iterator |
typedef iterator_template < typename List1D::const_iterator, const T > | const_iterator |
typedef std::vector< List1D > | List1DSeq |
typedef std::vector < bufferElement > | Buffer |
Public Member Functions | |
List2D (size_t xsize, size_t ysize, size_t nnz) | |
List2D (const List2D &) | |
List2D & | operator= (const List2D &) |
void | clear () |
void | resize (size_t xsize, size_t ysize, size_t nnz) |
bool | push (size_t x, size_t y, const T &val) |
bool | insert (size_t x, size_t y, const T &val) |
void | erase (iterator it) |
void | erase (size_t index) |
void | rowErase (size_t y) |
void | colErase (size_t x) |
size_t | rowSize (size_t y) const |
size_t | xsize () const |
size_t | colSize (size_t x) const |
size_t | ysize () const |
size_t | nnz () const |
iterator | rowBegin (size_t y) |
const_iterator | rowBegin (size_t y) const |
iterator | rowEnd (size_t y) |
const_iterator | rowEnd (size_t y) const |
iterator | colBegin (size_t x) |
const_iterator | colBegin (size_t x) const |
iterator | colEnd (size_t x) |
const_iterator | colEnd (size_t x) const |
template<class BinaryTable1D > | |
T | inner_product1D (const BinaryTable1D &bin) const |
template<class BinaryTable2D > | |
T | inner_product2D (const BinaryTable2D &bin, T *pprecision=0) const |
template<class BinaryTable2D > | |
void | get2DTable (BinaryTable2D *pbin) const |
T & | buffer (size_t index) |
const T & | buffer (size_t index) const |
std::pair< bool, T > | getValue (size_t x, size_t y) const |
not very efficient function. Implemented mainly for test purposes. |
Definition at line 32 of file transportationsolver.hxx.
typedef std::vector<bufferElement> TransportSolver::List2D< T >::Buffer |
Definition at line 120 of file transportationsolver.hxx.
typedef iterator_template<typename List1D::const_iterator,const T> TransportSolver::List2D< T >::const_iterator |
Definition at line 83 of file transportationsolver.hxx.
typedef iterator_template<typename List1D::iterator,T> TransportSolver::List2D< T >::iterator |
Definition at line 82 of file transportationsolver.hxx.
typedef std::list<listElement> TransportSolver::List2D< T >::List1D |
Definition at line 48 of file transportationsolver.hxx.
typedef std::vector<List1D> TransportSolver::List2D< T >::List1DSeq |
Definition at line 85 of file transportationsolver.hxx.
TransportSolver::List2D< T >::List2D | ( | size_t | xsize, | |
size_t | ysize, | |||
size_t | nnz | |||
) | [inline] |
Definition at line 206 of file transportationsolver.hxx.
TransportSolver::List2D< T >::List2D | ( | const List2D< T > & | lst | ) | [inline] |
Definition at line 215 of file transportationsolver.hxx.
const T& TransportSolver::List2D< T >::buffer | ( | size_t | index | ) | const [inline] |
Definition at line 185 of file transportationsolver.hxx.
T& TransportSolver::List2D< T >::buffer | ( | size_t | index | ) | [inline] |
Definition at line 184 of file transportationsolver.hxx.
void TransportSolver::List2D< T >::clear | ( | ) | [inline] |
const_iterator TransportSolver::List2D< T >::colBegin | ( | size_t | x | ) | const [inline] |
Definition at line 168 of file transportationsolver.hxx.
iterator TransportSolver::List2D< T >::colBegin | ( | size_t | x | ) | [inline] |
Definition at line 167 of file transportationsolver.hxx.
const_iterator TransportSolver::List2D< T >::colEnd | ( | size_t | x | ) | const [inline] |
Definition at line 171 of file transportationsolver.hxx.
iterator TransportSolver::List2D< T >::colEnd | ( | size_t | x | ) | [inline] |
Definition at line 170 of file transportationsolver.hxx.
void TransportSolver::List2D< T >::colErase | ( | size_t | x | ) | [inline] |
Definition at line 366 of file transportationsolver.hxx.
size_t TransportSolver::List2D< T >::colSize | ( | size_t | x | ) | const [inline] |
Definition at line 157 of file transportationsolver.hxx.
void TransportSolver::List2D< T >::erase | ( | size_t | index | ) | [inline] |
Definition at line 150 of file transportationsolver.hxx.
void TransportSolver::List2D< T >::erase | ( | iterator | it | ) | [inline] |
Definition at line 349 of file transportationsolver.hxx.
void TransportSolver::List2D< T >::get2DTable | ( | BinaryTable2D * | pbin | ) | const [inline] |
Definition at line 487 of file transportationsolver.hxx.
std::pair< bool, T > TransportSolver::List2D< T >::getValue | ( | size_t | x, | |
size_t | y | |||
) | const [inline] |
not very efficient function. Implemented mainly for test purposes.
Definition at line 427 of file transportationsolver.hxx.
T TransportSolver::List2D< T >::inner_product1D | ( | const BinaryTable1D & | bin | ) | const [inline] |
T TransportSolver::List2D< T >::inner_product2D | ( | const BinaryTable2D & | bin, | |
T * | pprecision = 0 | |||
) | const [inline] |
Definition at line 401 of file transportationsolver.hxx.
bool TransportSolver::List2D< T >::insert | ( | size_t | x, | |
size_t | y, | |||
const T & | val | |||
) | [inline] |
Definition at line 279 of file transportationsolver.hxx.
size_t TransportSolver::List2D< T >::nnz | ( | ) | const [inline] |
Definition at line 159 of file transportationsolver.hxx.
List2D< T > & TransportSolver::List2D< T >::operator= | ( | const List2D< T > & | lst | ) | [inline] |
Definition at line 268 of file transportationsolver.hxx.
bool TransportSolver::List2D< T >::push | ( | size_t | x, | |
size_t | y, | |||
const T & | val | |||
) | [inline] |
Definition at line 291 of file transportationsolver.hxx.
void TransportSolver::List2D< T >::resize | ( | size_t | xsize, | |
size_t | ysize, | |||
size_t | nnz | |||
) | [inline] |
Definition at line 221 of file transportationsolver.hxx.
const_iterator TransportSolver::List2D< T >::rowBegin | ( | size_t | y | ) | const [inline] |
Definition at line 162 of file transportationsolver.hxx.
iterator TransportSolver::List2D< T >::rowBegin | ( | size_t | y | ) | [inline] |
Definition at line 161 of file transportationsolver.hxx.
const_iterator TransportSolver::List2D< T >::rowEnd | ( | size_t | y | ) | const [inline] |
Definition at line 165 of file transportationsolver.hxx.
iterator TransportSolver::List2D< T >::rowEnd | ( | size_t | y | ) | [inline] |
Definition at line 164 of file transportationsolver.hxx.
void TransportSolver::List2D< T >::rowErase | ( | size_t | y | ) | [inline] |
Definition at line 359 of file transportationsolver.hxx.
size_t TransportSolver::List2D< T >::rowSize | ( | size_t | y | ) | const [inline] |
Definition at line 155 of file transportationsolver.hxx.
size_t TransportSolver::List2D< T >::xsize | ( | ) | const [inline] |
Definition at line 156 of file transportationsolver.hxx.
size_t TransportSolver::List2D< T >::ysize | ( | ) | const [inline] |
Definition at line 158 of file transportationsolver.hxx.