29#ifndef _UNITVECTORBASE_H_
30#define _UNITVECTORBASE_H_
99 UnitVectorBase<R>(
const UnitVectorBase<R>& rhs)
131#ifdef ENABLE_CONSISTENCY_CHECKS
Safe arrays of data objects.
bool isConsistent() const
Consistency check.
void add(int i, const R &v)
Append one nonzero (i,v).
int max() const
Maximal number of indices.
void set_size(int s)
Set size of the vector.
Nonzero< R > * mem() const
get pointer to internal memory.
int size() const
Number of used indices.
UnitVectorBase< R > & operator=(const UnitVectorBase< R > &rhs)
assignment
SVectorBase< R >::Element themem
memory for sparse vector entry
bool isConsistent() const
consistency check
R value(int n) const
returns value = 1
Everything should be within this namespace.
Debugging, floating point type and parameter definitions.
#define MSGinconsistent(name)