dvectorbase.h
Go to the documentation of this file.
36 * Class DVectorBase is a derived class of VectorBase adding automatic memory management to such objects. This allows 37 * to implement maths operations operator+() and operator-(). Further, it is possible to reset the dimension of a 38 * DVectorBase via method reDim(). However, this may render all references to values of a #reDim()%ed DVectorBase 41 * For vectors that are often subject to reDim() it may be unconvenient to reallocate the required memory every time. 42 * Instead, an array of values of length memSize() is kept, where only the first dim() elements are used. Initially, 43 * memSize() == dim(). However, if the dimension is increased, memSize() will be increased at least by a factor of 1.2 44 * to be prepared for future (small) #reDim()%s. Finally, one can explicitly set memSize() with method reSize(), but 54 // ------------------------------------------------------------------------------------------------------------------ 68 // ------------------------------------------------------------------------------------------------------------------ 111 /** The redundancy with the copy constructor below is necessary since otherwise the compiler doesn't realize that it 238 // ------------------------------------------------------------------------------------------------------------------ 297 // ------------------------------------------------------------------------------------------------------------------ 319 /// Resets \ref soplex::DVectorBase "DVectorBase"'s memory size to \p newsize (specialization for Real). DVectorBase< R > & operator=(const VectorBase< R > &vec) Assignment operator. Definition: dvectorbase.h:155 void reDim(int newdim, const bool setZero=true) Resets DVectorBase's dimension to newdim. Definition: dvectorbase.h:249 DVectorBase< R > & operator=(const DVectorBase< R > &vec) Assignment operator. Definition: dvectorbase.h:188 VectorBase< R > & operator=(const VectorBase< S > &vec) Assignment operator. Definition: vectorbase.h:111 Memory allocation routines. Dynamic dense vectors.Class DVectorBase is a derived class of VectorBase adding automatic memory mana... Definition: dvectorbase.h:48 Dense vector.Class VectorBase provides dense linear algebra vectors. It does not provide memory manag... Definition: dsvectorbase.h:28 void reSize(int newsize) Resets DVectorBase's memory size to newsize. Definition: dvectorbase.h:266 DVectorBase< R > & operator=(const VectorBase< S > &vec) Assignment operator. Definition: dvectorbase.h:172 Debugging, floating point type and parameter definitions. DVectorBase< R > & operator=(const DVectorBase< S > &vec) Assignment operator. Definition: dvectorbase.h:205 Everything should be within this namespace. Dense vector. Sparse vectors.Class SVectorBase provides packed sparse vectors. Such are a sparse vectors... Definition: dvectorbase.h:31 |