Loading...
Searching...
No Matches
DSVectorBase< R > Class Template Reference Dynamic sparse vectors. More...
Inheritance diagram for DSVectorBase< R >:
![]()
Detailed DescriptionDynamic 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]
Default constructor. Creates a DSVectorBase ready to hold Definition at line 83 of file dsvectorbase.h. References DSVectorBase< R >::setMax(). ◆ DSVectorBase() [2/6]Copy constructor. Definition at line 83 of file dsvectorbase.h. ◆ DSVectorBase() [3/6]
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 83 of file dsvectorbase.h. ◆ DSVectorBase() [4/6]Copy constructor. Definition at line 83 of file dsvectorbase.h. ◆ DSVectorBase() [5/6]Copy constructor. Definition at line 1071 of file basevectors.h. References DSVectorBase< R >::allocMem(), and DSVectorBase< R >::isConsistent(). ◆ DSVectorBase() [6/6]Copy constructor. Definition at line 1086 of file basevectors.h. References DSVectorBase< R >::allocMem(), DSVectorBase< R >::isConsistent(), SVectorBase< R >::operator=(), and DataArray< T >::size(). ◆ ~DSVectorBase() [1/2]
Destructor. Definition at line 206 of file dsvectorbase.h. ◆ ~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 DataArray< T >::size(). Referenced by SoPlex_addColRational(), SoPlex_addColReal(), SoPlex_addRowRational(), SoPlex_addRowReal(), test_rational(), and test_real(). ◆ add() [2/4]Append one uninitialized nonzero. Definition at line 243 of file dsvectorbase.h. References SVectorBase< R >::add(), and DSVectorBase< R >::makeMem(). ◆ add() [3/4]Append one nonzero Definition at line 236 of file dsvectorbase.h. References SVectorBase< R >::add(), and DSVectorBase< R >::makeMem(). ◆ add() [4/4]Append Definition at line 250 of file dsvectorbase.h. References SVectorBase< R >::add(), and DSVectorBase< R >::makeMem(). ◆ allocMem() [1/2]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(), and DSVectorBase< R >::DSVectorBase(). ◆ allocMem() [2/2]Allocate memory for Definition at line 323 of file dsvectorbase.h. References SVectorBase< R >::setMem(), and soplex::spx_alloc(). ◆ isConsistent()Consistency check. Definition at line 303 of file dsvectorbase.h. References MSGinconsistent, and DSVectorBase< R >::theelem. Referenced by DSVectorBase< R >::DSVectorBase(), and DSVectorBase< R >::DSVectorBase(). ◆ makeMem()Ensure there is room for Definition at line 83 of file dsvectorbase.h. 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]
Assignment operator. Definition at line 174 of file dsvectorbase.h. References SVectorBase< R >::clear(), DSVectorBase< R >::makeMem(), SVectorBase< R >::operator=(), and DataArray< T >::size(). ◆ operator=() [2/5]
Assignment operator. Definition at line 188 of file dsvectorbase.h. References SVectorBase< R >::clear(), DSVectorBase< R >::makeMem(), SVectorBase< R >::operator=(), and DataArray< T >::size(). ◆ operator=() [3/5]
Assignment operator. Definition at line 1120 of file basevectors.h. References SVectorBase< R >::clear(), DataArray< T >::DataArray(), SVectorBase< R >::operator=(), and DataArray< T >::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 DataArray< T >::size(). ◆ operator=() [5/5]Assignment operator. Definition at line 1101 of file basevectors.h. References SVectorBase< R >::clear(), DataArray< T >::DataArray(), DataArray< T >::isConsistent(), and SVectorBase< R >::operator=(). ◆ setMax() [1/2]Reset nonzero memory to >= This methods resets the memory consumption to Definition at line 348 of file dsvectorbase.h. References DataArray< T >::DataArray(), DataArray< T >::size(), and soplex::spx_realloc(). ◆ setMax() [2/2]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 >::DSVectorBase(). Friends And Related Symbol Documentation◆ SLinSolver< R >Definition at line 348 of file dsvectorbase.h. Member Data Documentation◆ theelemMemory. Definition at line 63 of file dsvectorbase.h. Referenced by DSVectorBase< R >::allocMem(), DSVectorBase< R >::isConsistent(), and DSVectorBase< R >::setMax().
|