All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DSVector Class Reference Dynamic sparse vectors.Class DSVector implements dynamic sparse vectors, i.e. SVectors with an automatic memory management. This allows the user to freely add() as many nonzeros to a DSVector as desired, without any precautions. For saving memory method setMax() allows to reduce memory consumption to the amount really required. More...
Inheritance diagram for DSVector:
![]()
Detailed DescriptionDynamic sparse vectors. Class DSVector implements dynamic sparse vectors, i.e. SVectors with an automatic memory management. This allows the user to freely add() as many nonzeros to a DSVector as desired, without any precautions. For saving memory method setMax() allows to reduce memory consumption to the amount really required.
Definition at line 43 of file dsvector.h. Constructor & Destructor Documentation
default constructor. Creates a DSVector ready to hold Definition at line 30 of file dsvector.cpp. References DSVector::allocMem(), and DSVector::isConsistent().
destructor. Definition at line 38 of file dsvector.cpp. References soplex::spx_free(), and DSVector::theelem. copy constructor from vector. Definition at line 44 of file dsvector.cpp. References DSVector::allocMem(), Vector::dim(), and DSVector::isConsistent(). copy constructor from sparse vector. Definition at line 53 of file dsvector.cpp. References DSVector::allocMem(), DSVector::isConsistent(), SVector::operator=(), and SVector::size(). copy constructor from semi sparse vector. Definition at line 62 of file dsvector.cpp. References DSVector::allocMem(), DSVector::isConsistent(), SVector::operator=(), and SSVector::size(). copy constructor from DSVector. Definition at line 71 of file dsvector.cpp. References DSVector::allocMem(), DSVector::isConsistent(), SVector::operator=(), and SVector::size(). Member Function Documentation
append nonzeros of Definition at line 128 of file dsvector.h. References SVector::add(), SVector::clear(), DSVector::makeMem(), and SVector::size(). Referenced by SPxMainSM::DuplicateRowsPS::DuplicateRowsPS(), SPxSolver::enter(), SPxMainSM::FreeZeroObjVariablePS::FreeZeroObjVariablePS(), SPxSolver::leave(), and SPxLP::readLPF().
append one nonzero Definition at line 137 of file dsvector.h. References SVector::add(), and DSVector::makeMem().
append Definition at line 144 of file dsvector.h. References SVector::add(), and DSVector::makeMem().
allocate memory for Definition at line 96 of file dsvector.cpp. References SVector::setMem(), soplex::spx_alloc(), and DSVector::theelem. Referenced by DSVector::DSVector().
consistency check. Definition at line 116 of file dsvector.cpp. References SVector::mem(), MSGinconsistent, and DSVector::theelem. Referenced by DSVector::DSVector(), LPCol::isConsistent(), LPRow::isConsistent(), and DSVector::operator=().
make sure there is room for Definition at line 61 of file dsvector.h. References SVector::max(), DSVector::setMax(), and SVector::size(). Referenced by DSVector::add(), and DSVector::operator=(). assignment operator from semi sparse vector. Definition at line 91 of file dsvector.h. References SVector::clear(), DSVector::makeMem(), SVector::operator=(), and SSVector::size(). assignment operator from sparse vector. Definition at line 100 of file dsvector.h. References SVector::clear(), DSVector::makeMem(), SVector::operator=(), and SVector::size(). assignment operator. Definition at line 109 of file dsvector.h. References SVector::clear(), DSVector::makeMem(), SVector::operator=(), and SVector::size(). assignment operator from vector. Definition at line 81 of file dsvector.cpp. References SVector::clear(), Vector::dim(), DSVector::isConsistent(), SVector::operator=(), and DSVector::setMax().
reset nonzero memory to >= This methods resets the memory consumption of the DIdxSet to Definition at line 102 of file dsvector.cpp. References SVector::set_size(), SVector::setMem(), SVector::size(), soplex::spx_realloc(), and DSVector::theelem. Referenced by SPxSolver::enter(), SPxSolver::leave(), DSVector::makeMem(), and DSVector::operator=(). Friends And Related Function Documentation
Definition at line 45 of file dsvector.h. Member Data Documentation
here is where the memory is Definition at line 52 of file dsvector.h. Referenced by DSVector::allocMem(), DSVector::isConsistent(), DSVector::setMax(), and DSVector::~DSVector().
|