19 #ifndef _DSVECTORBASE_H_    20 #define _DSVECTORBASE_H_    67       for(
int i = 0; i < n; i++)
   227    void add(
int i, 
const R& v)
   241    void add(
int n, 
const int i[], 
const R v[])
   254       int len = (newmax < siz) ? siz : newmax;
   267       for(i = 0; i < siz; i++)
   296 #ifdef ENABLE_CONSISTENCY_CHECKS   342    int len = (newmax < siz) ? siz : newmax;
   350 #endif // _DSVECTORBASE_H_ void makeMem(int n)
Ensure there is room for n new nonzeros. 
 
Sparse vector nonzero element. 
 
DSVectorBase< R > & operator=(const DSVectorBase< R > &vec)
Assignment operator. 
 
DSVectorBase< R > & operator=(const SVectorBase< S > &vec)
Assignment operator. 
 
SVectorBase< R > & operator=(const VectorBase< S > &vec)
Assignment operator. 
 
void allocMem(int n)
Allocate memory for n nonzeros. 
 
Dense vector.Class VectorBase provides dense linear algebra vectors. Internally, VectorBase wraps std...
 
void add(int n, const int i[], const R v[])
Append n nonzeros. 
 
void setMem(int n, Nonzero< R > *elmem)
Set the memory area where the nonzeros will be stored. 
 
int size() const
Number of used indices. 
 
void set_size(int s)
Set size of the vector. 
 
virtual ~DSVectorBase()
Destructor. 
 
Dynamic sparse vectors.Class DSVectorBase implements dynamic sparse vectors, i.e. SVectorBases with a...
 
Sparse Linear Solver virtual base class.Class SLinSolver provides a class for solving sparse linear s...
 
Semi sparse vector.This class implements semi-sparse vectors. Such are VectorBases where the indices ...
 
void add(const SVectorBase< S > &vec)
Append nonzeros of sv. 
 
Nonzero< R > * theelem
Memory. 
 
void spx_alloc(T &p, int n=1)
Allocate memory. 
 
void add(int i, const R &v)
Append one nonzero (i,v). 
 
void add(int i)
Append one uninitialized nonzero. 
 
bool isConsistent() const
Consistency check. 
 
DSVectorBase< R > & operator=(const DSVectorBase< S > &vec)
Assignment operator. 
 
void add(int i, const R &v)
Append one nonzero (i,v). 
 
void spx_realloc(T &p, int n)
Change amount of allocated memory. 
 
Everything should be within this namespace. 
 
void clear()
Remove all indices. 
 
Sparse vectors.Class SVectorBase provides packed sparse vectors. Such are a sparse vectors...
 
#define MSGinconsistent(name)
 
void spx_free(T &p)
Release memory. 
 
void setMax(int newmax=1)
Reset nonzero memory to >= newmax.