Loading...
Searching...
No Matches
UpdateVector< R > Class Template Reference Dense Vector with semi-sparse Vector for updates. More...
Inheritance diagram for UpdateVector< R >:
![]()
Detailed DescriptionDense Vector with semi-sparse Vector for updates. In many algorithms vectors are updated in every iteration, by adding a multiple of another VectorBase<R> to it, i.e., given a VectorBase<R> While the update itself can easily be expressed with methods of the class VectorBase<R>, it is often desirable to save the last update VectorBase<R> \(\delta\) and value \(\alpha\). This is provided by class UpdateVector<R>. UpdateVectors are derived from VectorBase<R> and provide additional methods for saving and setting the multiplicator \(\alpha\) and the update Vector \(\delta\). Further, it allows for efficient sparse updates, by providing an IdxSet idx() containing the nonzero indices of \(\delta\). Definition at line 62 of file updatevector.h. Constructor & Destructor Documentation◆ UpdateVector() [1/2]
default constructor. Definition at line 70 of file updatevector.h. ◆ ~UpdateVector()
Definition at line 70 of file updatevector.h. ◆ UpdateVector() [2/2]
copy constructor Member Function Documentation◆ clear()clear VectorBase<R> and update vector Definition at line 153 of file updatevector.h. References VectorBase< R >::clear(), and UpdateVector< R >::clearUpdate(). ◆ clearUpdate()clear \(\delta\), \(\alpha\) Definition at line 160 of file updatevector.h. References DataArray< T >::clear(), UpdateVector< R >::thedelta, and UpdateVector< R >::theval. Referenced by UpdateVector< R >::clear(). ◆ delta() [1/2]
update VectorBase<R> \(\delta\), writeable Definition at line 122 of file updatevector.h. References UpdateVector< R >::thedelta. ◆ delta() [2/2]
update VectorBase<R> \(\delta\) Definition at line 127 of file updatevector.h. References UpdateVector< R >::thedelta. ◆ idx()nonzero indices of update VectorBase<R> \(\delta\) Definition at line 133 of file updatevector.h. References UpdateVector< R >::thedelta. ◆ isConsistent()Referenced by UpdateVector< R >::operator=(). ◆ operator=() [1/2]
assignment ◆ operator=() [2/2]
assignment from VectorBase<R> Definition at line 93 of file updatevector.h. References UpdateVector< R >::isConsistent(), and VectorBase< R >::operator=(). ◆ reDim()reset dimension Definition at line 167 of file updatevector.h. References VectorBase< R >::reDim(), and UpdateVector< R >::thedelta. ◆ update()Perform the update. Add Definition at line 147 of file updatevector.h. References VectorBase< R >::multAdd(), and UpdateVector< R >::thedelta. ◆ value() [1/2]update multiplicator \(\alpha\), writeable Definition at line 111 of file updatevector.h. References UpdateVector< R >::theval. ◆ value() [2/2]update multiplicator \(\alpha\) Definition at line 116 of file updatevector.h. References UpdateVector< R >::theval. Member Data Documentation◆ thedelta
update vector Definition at line 70 of file updatevector.h. Referenced by UpdateVector< R >::clearUpdate(), UpdateVector< R >::delta(), UpdateVector< R >::delta(), UpdateVector< R >::idx(), UpdateVector< R >::reDim(), and UpdateVector< R >::update(). ◆ thevalupdate multiplicator Definition at line 69 of file updatevector.h. Referenced by UpdateVector< R >::clearUpdate(), UpdateVector< R >::value(), and UpdateVector< R >::value().
|