All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DVector Class Reference Dynamic vectors.Class DVector is a derived class of Vector adding automatic memory management to such objects. This allows to implement maths operations operator+() and operator-(). Further, it is possible to reset the dimension of a DVector via method reDim(). However, this may render all references to values of a reDim()ed DVector invalid. More...
Inheritance diagram for DVector:
![]()
Detailed DescriptionDynamic vectors. Class DVector is a derived class of Vector adding automatic memory management to such objects. This allows to implement maths operations operator+() and operator-(). Further, it is possible to reset the dimension of a DVector via method reDim(). However, this may render all references to values of a reDim()ed DVector invalid. For vectors that are often subject to reDim() it may be unconvenient to reallocate the required memory every time. Instead, an array of values of length memSize() is kept, where only the first dim() elements are used. Initially, memSize() == dim(). However, if the dimension is increased, memSize() will be increased at least by a factor of 1.2 to be prepared for future (small) reDim()s. Finally, one can explicitly set memSize() with method reSize(), but not lower than dim(). Constructor & Destructor Documentation
default constructor. Definition at line 190 of file dvector.cpp. References Vector::dimen, DVector::isConsistent(), DVector::mem, DVector::memsize, soplex::spx_alloc(), and Vector::val. copy constructor. Definition at line 150 of file dvector.cpp. References Vector::dim(), Vector::dimen, DVector::isConsistent(), DVector::mem, DVector::memsize, soplex::spx_alloc(), and Vector::val.
cast from exact vector. Definition at line 163 of file dvector.cpp. References Vector_exact::dim(), Vector::dimen, DVector::isConsistent(), DVector::mem, DVector::memsize, Vector::operator=(), soplex::spx_alloc(), and Vector::val. copy constructor. Definition at line 177 of file dvector.cpp. References Vector::dim(), Vector::dimen, DVector::isConsistent(), DVector::mem, DVector::memsize, soplex::spx_alloc(), and Vector::val.
destructor. Definition at line 206 of file dvector.cpp. References DVector::mem, and soplex::spx_free(). Member Function Documentation
consistency check. Definition at line 212 of file dvector.cpp. References Vector::dimen, Vector::isConsistent(), DVector::mem, DVector::memsize, MSGinconsistent, and Vector::val. Referenced by DVector::DVector(), UpdateVector::isConsistent(), SSVector::isConsistent(), LPColSet::isConsistent(), LPRowSet::isConsistent(), SPxSolver::isConsistent(), and DVector::operator=().
returns DVector's memory size. Definition at line 155 of file dvector.h. References DVector::memsize. Referenced by SSVector::reDim(), and SSVector::reMem(). assignment operator. Definition at line 177 of file dvector.h. References Vector::dim(), DVector::isConsistent(), Vector::operator=(), and DVector::reDim(). Referenced by UpdateVector::operator=(). assignment operator. Definition at line 188 of file dvector.h. References Vector::dim(), DVector::isConsistent(), Vector::operator=(), and DVector::reDim(). assingment operator. Definition at line 201 of file dvector.h. References Vector::dim(), SVector::dim(), DVector::isConsistent(), Vector::operator=(), and DVector::reDim().
resets DVector's dimension to Definition at line 101 of file dvector.cpp. References Vector::dimen, DVector::mem, DVector::memsize, and DVector::reSize(). Referenced by LPColSet::add(), LPRowSet::add(), SPxDevexPR::addedCoVecs(), SPxWeightPR::addedCoVecs(), SPxSteepPR::addedCoVecs(), SPxDevexPR::addedVecs(), SPxWeightPR::addedVecs(), SPxSteepPR::addedVecs(), LPColSet::clear(), LPRowSet::clear(), LPColSet::create(), LPRowSet::create(), SPxBoundFlippingRT::flipAndUpdate(), SPxWeightPR::load(), SLUFactor::load(), SPxSteepPR::load(), DVector::operator=(), SSVector::operator=(), soplex::operator>>(), UpdateVector::reDim(), SSVector::reDim(), SPxSolver::reDim(), LPColSet::remove(), LPRowSet::remove(), SPxWeightPR::removedCoVec(), SPxSteepPR::removedCoVec(), SPxWeightPR::removedCoVecs(), SPxSteepPR::removedCoVecs(), SPxWeightPR::removedVec(), SPxSteepPR::removedVec(), SPxWeightPR::removedVecs(), SPxSteepPR::removedVecs(), SPxSteepPR::setRep(), SPxWeightPR::setType(), SSVector::setup_and_assign(), SPxSumST::setupWeights(), SPxSteepPR::setupWeights(), and SPxMainSM::simplify().
resets DVector's memory size to Definition at line 80 of file dvector.cpp. References Vector::dim(), DVector::mem, DVector::memsize, soplex::spx_realloc(), and Vector::val. Referenced by DVector::reDim(), LPColSet::reMax(), LPRowSet::reMax(), and SSVector::reMem().
resets DVector's memory size to Definition at line 90 of file dvector.cpp. References Vector::dimen, DVector::mem, DVector::memsize, soplex::spx_realloc(), and Vector::val. Friends And Related Function Documentationscaling vectors with a real number. Definition at line 72 of file dvector.cpp. adding vectors. Definition at line 25 of file dvector.cpp. adding vectors. Definition at line 34 of file dvector.cpp. subtracting vectors. Definition at line 49 of file dvector.cpp. subtracting vectors. Definition at line 65 of file dvector.cpp. subtracting vectors. Definition at line 58 of file dvector.cpp. negation operator. Definition at line 41 of file dvector.cpp.
output operator. Definition at line 113 of file dvector.cpp. Member Data Documentation
value array to be used Definition at line 59 of file dvector.h. Referenced by DVector::DVector(), DVector::isConsistent(), DVector::reDim(), DVector::reSize(), and DVector::~DVector().
length of array of values mem Definition at line 58 of file dvector.h. Referenced by DVector::DVector(), DVector::isConsistent(), DVector::memSize(), DVector::reDim(), and DVector::reSize().
|