template <class Type> class SpaMatrix : public Matrix <Type>

a sparse matrix class template

Inheritance:


public members:

SpaMatrix (int,int,int)
SpaMatrix ( Vector <Type>&, Vector <int>&, Vector <int>&)
SpaMatrix ( Vector <Type>&, int*, int*)
SpaMatrix (const SpaMatrix <Type>&)
const int nzSize () const
access the size description of the matrix
const char* matrixType () const
Type& operator[] (int )
the ith non-zero element
Vector <Type> rowVector (int i) const
the ith row-vector
Vector <Type> colVector (int j) const
the jth coumn-vector
Type operator() (char*, int)
sum across rows
Type operator() (int, char*)
sum across columns
Type rowMax (int) const
return the largest non-zero member of the row
Type rowMin (int) const
return the smallest non-zero member of the row
Type colMax (int) const
return the largest non-zero member of the col
Type colMin (int) const
return the smallest non-zero member of the col
const int colPos (int i) const
const int rowPos (int i) const
const int nzRow (int i) const
int rowCount (int) const
count number of nonzeros
Type rowNorm (int ir, int p )
row-norm of the sparse matrix
Type rowNorm2 (int ir)
row-2-norm squared of the sparse matrix
Type rowDot (int, const Vector <Type>&)
dot product of one row with a Vector
Vector <Type> rowScale (int, Type)
row scaling
SpaMatrix <Type>& operator= (const SpaMatrix <Type>&)
SpaMatrix <Type>& operator+= (Type c)
SpaMatrix <Type>& operator-= (Type c)
SpaMatrix <Type>& operator*= (Type c)
SpaMatrix <Type>& operator/= (Type c)
SpaMatrix <Type> operator- ()
Vector <Type> adotx (const Vector <Type>& x)
Vector <Type> atdotx (const Vector <Type>& x)
friend Vector <Type> operator* (const SpaMatrix <Type>& A, const Vector <Type>& v)
friend ostream& operator<< (ostream&, const SpaMatrix <Type>&)
write the sparse matrix to a stream

Inherited from Matrix:

public members:

int numOfRows() const
int numOfCols() const

Documentation

This is a class for efficient representation and manipulation of sparse matrix.

this class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling