Loading...
Searching...
No Matches
dsvectorbase.h
Go to the documentation of this file.
44 * Class DSVectorBase implements dynamic sparse vectors, i.e. #SVectorBase%s with an automatic memory management. This
45 * allows the user to freely add() as many nonzeros to a DSVectorBase as desired, without any precautions. For saving
48 * @todo Both DSVectorBase and SVectorBase have a member variable that points to allocated memory. This does not seem to
58 // ------------------------------------------------------------------------------------------------------------------
67 // ------------------------------------------------------------------------------------------------------------------
98 // ------------------------------------------------------------------------------------------------------------------
103 /** Creates a DSVectorBase ready to hold \p n nonzeros. However, the memory is automatically enlarged, if more
126 /** The redundancy with the copy constructor below is necessary since otherwise the compiler doesn't realize that it
222 // ------------------------------------------------------------------------------------------------------------------
257 /** This methods resets the memory consumption to \p newmax. However, if \p newmax < size(), it is
298 // ------------------------------------------------------------------------------------------------------------------
343/** This methods resets the memory consumption to \p newmax. However, if \p newmax < size(), it is
DSVectorBase< R > & operator=(const DSVectorBase< R > &vec) Assignment operator. Definition dsvectorbase.h:174 DSVectorBase< R > & operator=(const DSVectorBase< S > &vec) Assignment operator. Definition dsvectorbase.h:188 DSVectorBase< R > & operator=(const SVectorBase< S > &vec) Assignment operator. Definition dsvectorbase.h:161 void setMem(int n, Nonzero< R > *elmem) Set the memory area where the nonzeros will be stored. Definition svectorbase.h:813 SVectorBase< R > & operator=(const VectorBase< S > &vec) Assignment operator. Definition basevectors.h:951 Everything should be within this namespace. Sparse vectors.
|