PrMatSparse Class Reference

Inheritance diagram for PrMatSparse:

PrMatrix List of all members.

Derived from base class

virtual int rows () const
 Number of rows.
virtual int colmns () const
 Number of columns.
virtual double operator() (int i, int j) const
 value of matrix element
virtual void prod (const PrVec &x, PrVec &y) const
 Find y = Ax.
virtual void print (std::ostream &os)
 print contents to stream
virtual void read (std::istream &is)
 read contents from stream
virtual ~PrMatSparse ()
 virtual destructor

Other functions

void matProd (PrMatSparse &B, PrMatSparse &C) const
 find C = A*B.
void scalProd (double d)
 multiply all elements with 'd'
void printFull (std::ostream &os)
 print the matrix to stream in 'full' (not sparse) format
 PrMatSparse ()
 constructor for a sparse matrix of zero size.
 PrMatSparse (int m, int n, int num_nonzero)
 constructor for an (m x n) matrix with 'num_nonzero' nonzero elements
 PrMatSparse (int m, int n, int num_nonzero, const int *irow, const int *jcol, const double *data)
 Set to sparse matrix given by irow, jcol and data.
void redim (int m, int n, int num_nonzero)
 resize matrix to (m x n), with 'num_nonzero' nonzero elements
void setToMatrix (const PrMatrix &m, double tol=0.0)
 Set equal to another matrix, sparsify if entries <= tol.
int & irow (int k)
 < 0 <= k <= m_ (last element is past-the-end index of a_)
const int & irow (int k) const
 < 0 <= k <= m_ (last element is past-the-end index of a_)
int & jcol (int k)
 < 0 <= k <= p_-1
const int & jcol (int k) const
 < 0 <= k <= p_-1
double & operator() (int k)
 < 0 <= k <= p_-1
const double & operator() (int k) const
 < 0 <= k <= p_-1

Detailed Description

Definition at line 42 of file PrMatSparse.h.


Member Function Documentation

void PrMatSparse::matProd ( PrMatSparse B,
PrMatSparse C 
) const

find C = A*B.

Multiplies two sparse matrices, "A=(this)" times "B" and stores the result in "C"

Definition at line 231 of file PrMatSparse.C.

Referenced by PrParametrizeInt::new_parametrize3d().


The documentation for this class was generated from the following files:
Generated on Tue Jun 12 11:05:05 2007 for GoTools Parametrization Library by  doxygen 1.5.1