Loading...
Searching...
No Matches
DSVectorBase< R > Class Template Reference Dynamic sparse vectors. More...
Inheritance diagram for DSVectorBase< R >:
![]()
Detailed Descriptiontemplate<class R> class soplex::DSVectorBase< R > Dynamic sparse vectors. Class DSVectorBase implements dynamic sparse vectors, i.e. SVectorBases with an automatic memory management. This allows the user to freely add() as many nonzeros to a DSVectorBase as desired, without any precautions. For saving memory method setMax() allows to reduce memory consumption to the amount really required.
Definition at line 52 of file dsvectorbase.h. Constructor & Destructor Documentation◆ DSVectorBase() [1/6]
template<class R >
Default constructor. Creates a DSVectorBase ready to hold Definition at line 106 of file dsvectorbase.h. References DSVectorBase< R >::allocMem(), and DSVectorBase< R >::isConsistent(). ◆ DSVectorBase() [2/6]Copy constructor. Definition at line 116 of file dsvectorbase.h. References DSVectorBase< R >::allocMem(), DSVectorBase< R >::isConsistent(), SVectorBase< R >::operator=(), and SVectorBase< R >::size(). ◆ DSVectorBase() [3/6]
template<class R >
Copy constructor. The redundancy with the copy constructor below is necessary since otherwise the compiler doesn't realize that it could use the more general one with S = R and generates a shallow copy constructor. Definition at line 129 of file dsvectorbase.h. References DSVectorBase< R >::allocMem(), DSVectorBase< R >::isConsistent(), SVectorBase< R >::operator=(), and SVectorBase< R >::size(). ◆ DSVectorBase() [4/6]Copy constructor. Definition at line 141 of file dsvectorbase.h. References DSVectorBase< R >::allocMem(), DSVectorBase< R >::isConsistent(), SVectorBase< R >::operator=(), and SVectorBase< R >::size(). ◆ DSVectorBase() [5/6]Copy constructor. Definition at line 1072 of file basevectors.h. References DSVectorBase< R >::allocMem(), VectorBase< R >::dim(), and DSVectorBase< R >::isConsistent(). ◆ DSVectorBase() [6/6]Copy constructor. Definition at line 1087 of file basevectors.h. References DSVectorBase< R >::allocMem(), DSVectorBase< R >::isConsistent(), SVectorBase< R >::operator=(), and SSVectorBase< R >::size(). ◆ ~DSVectorBase() [1/2]
template<class R >
Destructor. Definition at line 209 of file dsvectorbase.h. References soplex::spx_free(), and DSVectorBase< R >::theelem. ◆ ~DSVectorBase() [2/2]
Destructor (specialization for Real). Definition at line 334 of file dsvectorbase.h. References soplex::spx_free(). Member Function Documentation◆ add() [1/4]Append nonzeros of Definition at line 228 of file dsvectorbase.h. References SVectorBase< R >::add(), SVectorBase< R >::clear(), DSVectorBase< R >::makeMem(), and SVectorBase< R >::size(). Referenced by soplex::operator*(), SoPlex_addColRational(), SoPlex_addColReal(), SoPlex_addRowRational(), SoPlex_addRowReal(), test_rational(), and test_real(). ◆ add() [2/4]
template<class R >
Append one uninitialized nonzero. Definition at line 243 of file dsvectorbase.h. References SVectorBase< R >::add(), and DSVectorBase< R >::makeMem(). ◆ add() [3/4]
template<class R >
Append one nonzero Definition at line 236 of file dsvectorbase.h. References SVectorBase< R >::add(), and DSVectorBase< R >::makeMem(). ◆ add() [4/4]
template<class R >
Append Definition at line 250 of file dsvectorbase.h. References SVectorBase< R >::add(), and DSVectorBase< R >::makeMem(). ◆ allocMem() [1/2]
template<class R >
Allocate memory for Definition at line 72 of file dsvectorbase.h. References SVectorBase< R >::setMem(), soplex::spx_alloc(), and DSVectorBase< R >::theelem. Referenced by DSVectorBase< R >::DSVectorBase(), DSVectorBase< R >::DSVectorBase(), DSVectorBase< R >::DSVectorBase(), DSVectorBase< R >::DSVectorBase(), DSVectorBase< R >::DSVectorBase(), and DSVectorBase< R >::DSVectorBase(). ◆ allocMem() [2/2]
Allocate memory for Definition at line 323 of file dsvectorbase.h. References soplex::spx_alloc(). ◆ isConsistent()
template<class R >
Consistency check. Definition at line 303 of file dsvectorbase.h. References SPX_MSG_INCONSISTENT, and DSVectorBase< R >::theelem. Referenced by DSVectorBase< R >::DSVectorBase(), DSVectorBase< R >::DSVectorBase(), DSVectorBase< R >::DSVectorBase(), DSVectorBase< R >::DSVectorBase(), DSVectorBase< R >::DSVectorBase(), and DSVectorBase< R >::DSVectorBase(). ◆ makeMem()
template<class R >
Ensure there is room for Definition at line 83 of file dsvectorbase.h. References DSVectorBase< R >::setMax(). Referenced by DSVectorBase< R >::add(), DSVectorBase< R >::add(), DSVectorBase< R >::add(), DSVectorBase< R >::add(), DSVectorBase< R >::operator=(), DSVectorBase< R >::operator=(), and DSVectorBase< R >::operator=(). ◆ operator=() [1/5]
template<class R >
Assignment operator. Definition at line 174 of file dsvectorbase.h. References SVectorBase< R >::clear(), DSVectorBase< R >::makeMem(), SVectorBase< R >::operator=(), and SVectorBase< R >::size(). ◆ operator=() [2/5]
template<class R >
template<class S >
Assignment operator. Definition at line 188 of file dsvectorbase.h. References SVectorBase< R >::clear(), DSVectorBase< R >::makeMem(), SVectorBase< R >::operator=(), and SVectorBase< R >::size(). ◆ operator=() [3/5]
template<class R >
template<class S >
Assignment operator. Definition at line 1121 of file basevectors.h. References SSVectorBase< R >::size(). ◆ operator=() [4/5]Assignment operator. Definition at line 161 of file dsvectorbase.h. References SVectorBase< R >::clear(), DSVectorBase< R >::makeMem(), SVectorBase< R >::operator=(), and SVectorBase< R >::size(). ◆ operator=() [5/5]Assignment operator. Definition at line 1102 of file basevectors.h. References VectorBase< R >::dim(). ◆ setMax() [1/2]
Reset nonzero memory to >= This methods resets the memory consumption to Definition at line 348 of file dsvectorbase.h. References soplex::spx_realloc(). ◆ setMax() [2/2]
template<class R >
Reset nonzero memory to >= This methods resets the memory consumption to Definition at line 260 of file dsvectorbase.h. References SVectorBase< R >::set_size(), SVectorBase< R >::setMem(), SVectorBase< R >::size(), soplex::spx_alloc(), soplex::spx_free(), and DSVectorBase< R >::theelem. Referenced by DSVectorBase< R >::makeMem(). Friends And Related Symbol Documentation◆ SLinSolver< R >
template<class R >
Definition at line 348 of file dsvectorbase.h. Member Data Documentation◆ theelem
template<class R >
Memory. Definition at line 63 of file dsvectorbase.h. Referenced by DSVectorBase< R >::allocMem(), DSVectorBase< R >::isConsistent(), DSVectorBase< R >::setMax(), and DSVectorBase< R >::~DSVectorBase().
|