20 #ifndef _UNITVECTORBASE_H_ 21 #define _UNITVECTORBASE_H_ 121 #ifdef ENABLE_CONSISTENCY_CHECKS 142 #endif // _UNITVECTORBASE_H_ Sparse vector nonzero element.
int size() const
Number of used indices.
void set_size(int s)
Set size of the vector.
Nonzero< R > * mem() const
get pointer to internal memory.
bool isConsistent() const
consistency check
UnitVectorBase< R > & operator=(const UnitVectorBase< R > &rhs)
assignment
R value(int n) const
returns value = 1
Sparse vector .A UnitVectorBase is an SVectorBase that can take only one nonzero value with value 1 b...
void add(int i, const R &v)
Append one nonzero (i,v).
Debugging, floating point type and parameter definitions.
bool isConsistent() const
Consistency check.
SVectorBase< R >::Element themem
memory for sparse vector entry
Everything should be within this namespace.
int max() const
Maximal number of indices.
Sparse vectors.Class SVectorBase provides packed sparse vectors. Such are a sparse vectors...
#define MSGinconsistent(name)