|
ergo
|
a collection of vectors, usually handled at once. More...
#include <slr.h>
Public Member Functions | |
| VarVectorCollection (int nSize=0) | |
| ~VarVectorCollection () | |
| void | setSize (int sz) |
| VarVector & | operator[] (int i) |
| int | size () const |
| bool | getDiskMode () const |
| void | setDiskMode (bool x) |
| void | release () |
| Make sure there is space for one vector. | |
| void | releaseAll () |
| Release all vectors from the memory, saving if necessary. | |
Static Public Attributes | |
| static const char * | tmpdir = "/tmp" |
Private Attributes | |
| VarVector * | vecs |
| unsigned * | ages |
| unsigned | currentAge |
| int | nVecs |
| int | nAllocated |
| bool | diskMode |
a collection of vectors, usually handled at once.
|
inlineexplicit |
References ages, currentAge, diskMode, nAllocated, nVecs, setSize(), and vecs.
|
inline |
References diskMode.
| VarVector & LR::VarVectorCollection::operator[] | ( | int | i | ) |
References ages, currentAge, release(), tmpdir, and vecs.
| void LR::VarVectorCollection::release | ( | ) |
Make sure there is space for one vector.
Must allow at least two vectors at the same time in memory or evil things will happen.
References ages, diskMode, do_output(), LOG_AREA_LR, LOG_CAT_INFO, nVecs, tmpdir, and vecs.
Referenced by operator[]().
| void LR::VarVectorCollection::releaseAll | ( | ) |
Release all vectors from the memory, saving if necessary.
References diskMode, do_output(), LOG_AREA_LR, LOG_CAT_INFO, nVecs, tmpdir, and vecs.
Referenced by LR::LRSolver::addToSpace().
|
inline |
References diskMode.
Referenced by LR::LRSolver::solve().
| void LR::VarVectorCollection::setSize | ( | int | sz | ) |
References ages, nAllocated, nVecs, and vecs.
Referenced by LR::EigenSolver::getInitialGuess(), LR::SetOfEqSolver::getInitialGuess(), LR::EigenSolver::getResidual(), LR::SetOfEqSolver::getResidual(), and VarVectorCollection().
|
inline |
References nVecs.
Referenced by LR::LRSolver::addToSpace().
|
private |
Referenced by operator[](), release(), setSize(), VarVectorCollection(), and ~VarVectorCollection().
|
private |
Referenced by operator[](), and VarVectorCollection().
|
private |
Referenced by getDiskMode(), release(), releaseAll(), setDiskMode(), and VarVectorCollection().
|
private |
Referenced by setSize(), and VarVectorCollection().
|
private |
Referenced by release(), releaseAll(), setSize(), size(), and VarVectorCollection().
|
static |
Referenced by operator[](), release(), and releaseAll().
|
private |
Referenced by operator[](), release(), releaseAll(), setSize(), VarVectorCollection(), and ~VarVectorCollection().