20 #ifndef _UPDATEVECTOR_H_ 21 #define _UPDATEVECTOR_H_ 74 , thedelta(p_dim, p_eps)
170 thedelta.
reDim(newdim);
184 #endif // _UPDATEVECTOR_H_ DVectorBase< Real > & operator=(const VectorBase< Real > &vec)
Assignment operator.
void clearUpdate()
clear ,
void reDim(int newdim, const bool setZero=true)
Resets DVectorBase's dimension to newdim.
UpdateVector & operator=(const Vector &rhs)
assignment from Vector
SSVector thedelta
update vector
void clear()
clear vector and update vector
void reDim(int newdim)
reset dimension
const SSVector & delta() const
update vector
Real theval
update multiplicator
void update()
Perform the update.
const IdxSet & indices() const
Returns indices.
void clear()
Clears vector.
Dense vector with semi-sparse vector for updatesIn many algorithms vectors are updated in every itera...
void reDim(int newdim)
Resets dimension to newdim.
Debugging, floating point type and parameter definitions.
VectorBase< Real > & multAdd(const S &x, const VectorBase< T > &vec)
Addition of scaled vector.
Everything should be within this namespace.
Real value() const
update multiplicator
const IdxSet & idx() const
nonzero indices of update vector
Real & value()
update multiplicator , writeable
UpdateVector(int p_dim, Real p_eps)
default constructor.
void clear()
Set vector to 0.
bool isConsistent() const
SSVector & delta()
update vector , writeable
UpdateVector & operator=(const DVector &rhs)
assignment from DVector
Set of indices.Class IdxSet provides a set of indices. At construction it must be given an array of i...