Diffpack Documentation

(Functionality not available, requires installation of an additional Diffpack Toolbox)


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

ProjMatSparse Class Reference

sparse projection operators between grids. More...

#include <ProjMatSparse.h>

Inheritance diagram for ProjMatSparse::

ProjMatrix Proj HandleId ProjInterpSparse ProjInterpSparseHier MxProj List of all members.

Public Methods

 ProjMatSparse (const char *description_="Projecton operator")
 ProjMatSparse (const Proj_prm &prm, const char *description_="Projection operator")
virtual ~ProjMatSparse ()
virtual void scale (const LinEqVector &s, TransposeMode tpmode)
virtual void scale (real s)
virtual bool rebindMatSparse (MatSparse(NUMT) &m)
virtual String description () const
virtual void print (Os os, int output=1) const

Protected Attributes

int counter
int row
Handle(MatSparse(NUMT)) mat

Detailed Description

sparse projection operators between grids.

NAME: ProjMatSparse - sparse projection operators between grids

DESCRIPTION:

This projection operator uses a "MatSparse" representation. The "MatSparse" object must be filled by the user.


Constructor & Destructor Documentation

ProjMatSparse::ProjMatSparse ( const char * description_ = "Projecton operator" )
 

See class "Proj". Notice that a "MatSparse" object must be supplied by use of "rebindMatSparse".

ProjMatSparse::ProjMatSparse ( const Proj_prm & prm,
const char * description_ = "Projection operator" )
 

See documentation of one of the overloaded constructor.

ProjMatSparse::~ProjMatSparse ( ) [virtual]
 


Member Function Documentation

String ProjMatSparse::description ( ) const [virtual]
 

returns the "String" description of the projection operator.

Reimplemented from ProjMatrix.

Reimplemented in ProjInterpSparse, MxProj, and ProjInterpSparseHier.

void ProjMatSparse::print ( Os os,
int output = 1 ) const [virtual]
 

Reimplemented from ProjMatrix.

Reimplemented in ProjInterpSparse, and MxProj.

bool ProjMatSparse::rebindMatSparse ( MatSparse(NUMT) & m ) [virtual]
 

connects the projection operator to a "MatSparse" object, i.e., a sparse matrix, which will be used to store the projection.

Reimplemented from Proj.

void ProjMatSparse::scale ( real s ) [virtual]
 

See documentation of one of the overloaded functions.

Reimplemented from ProjMatrix.

void ProjMatSparse::scale ( const LinEqVector & s,
TransposeMode tpmode ) [virtual]
 

scales the projection operator according to input values. If the a scalar constant "s" is applied, all entries in the operator is scaled by the constant value, "P(i,j)=s*P(i,j)".

If the input sepcifies a "LinEqVector", the operator is scaled row- or columnwise. That is, for "tpmode=TRANSPOSED" the rows are scaled, "P(i,j) = s(i)*P(i,j)". Similarly, for "tpmode=NOT_TRANSPOSED" the wolumns are scaled as "P(i,j)=s(j)*P(i,j)".

Reimplemented from ProjMatrix.


Member Data Documentation

int ProjMatSparse::counter [protected]
 

Handle(MatSparse(NUMT)) ProjMatSparse::mat [protected]
 

int ProjMatSparse::row [protected]
 


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.