All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ssvectorbase.h
Go to the documentation of this file.
38 * This class implements semi-sparse vectors. Such are #DVectorBase%s where the indices of its nonzero elements can be
39 * stored in an extra IdxSet. Only elements with absolute value > #epsilon are considered to be nonzero. Since really
40 * storing the nonzeros is not always convenient, an SSVectorBase provides two different stati: setup and not setup.
41 * An SSVectorBase being setup means that the nonzero indices are available, otherwise an SSVectorBase is just an
42 * ordinary DVectorBase with an empty IdxSet. Note that due to arithmetic operation, zeros can slip in, i.e., it is
54 // ------------------------------------------------------------------------------------------------------------------
79 // ------------------------------------------------------------------------------------------------------------------
82 * An SSVectorBase can be set up or not. In case it is set up, its IdxSet correctly contains all indices of nonzero
83 * elements of the SSVectorBase. Otherwise, it does not contain any useful data. Whether or not an SSVectorBase is
90 * - setup(): This method initializes the IdxSet to the SSVectorBase's nonzero indices and sets the status to
93 * - forceSetup(): This method sets the status to ``setup'' without verifying that the IdxSet correctly contains all
131 /// Initializes nonzero indices for elements with absolute values above #epsilon and sets all other elements to 0.
169 // ------------------------------------------------------------------------------------------------------------------
271 // ------------------------------------------------------------------------------------------------------------------
322 // ------------------------------------------------------------------------------------------------------------------
527 // ------------------------------------------------------------------------------------------------------------------
624 // ------------------------------------------------------------------------------------------------------------------
658 /** The redundancy with the copy constructor below is necessary since otherwise the compiler doesn't realize that it
|