Ifpack_SparsityFilter Class Reference

Ifpack_SparsityFilter: a class to drop based on sparsity. More...

#include <Ifpack_SparsityFilter.h>

Inheritance diagram for Ifpack_SparsityFilter:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Ifpack_SparsityFilter (const Teuchos::RefCountPtr< Epetra_RowMatrix > &Matrix, int AllowedNumEntries, int AllowedBandwidth=-1)
virtual ~Ifpack_SparsityFilter ()
virtual int NumMyRowEntries (int MyRow, int &NumEntries) const
virtual int MaxNumEntries () const
virtual int ExtractMyRowCopy (int MyRow, int Length, int &NumEntries, double *Values, int *Indices) const
virtual int ExtractDiagonalCopy (Epetra_Vector &Diagonal) const
virtual int Multiply (bool TransA, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
virtual int Solve (bool Upper, bool Trans, bool UnitDiagonal, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
virtual int Apply (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
virtual int ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
virtual int InvRowSums (Epetra_Vector &x) const
virtual int LeftScale (const Epetra_Vector &x)
virtual int InvColSums (Epetra_Vector &x) const
virtual int RightScale (const Epetra_Vector &x)
virtual bool Filled () const
virtual double NormInf () const
virtual double NormOne () const
virtual int NumGlobalNonzeros () const
virtual int NumGlobalRows () const
virtual int NumGlobalCols () const
virtual int NumGlobalDiagonals () const
virtual int NumMyNonzeros () const
virtual int NumMyRows () const
virtual int NumMyCols () const
virtual int NumMyDiagonals () const
virtual bool LowerTriangular () const
virtual bool UpperTriangular () const
virtual const Epetra_MapRowMatrixRowMap () const
virtual const Epetra_MapRowMatrixColMap () const
virtual const Epetra_ImportRowMatrixImporter () const
int SetUseTranspose (bool UseTranspose)
bool UseTranspose () const
bool HasNormInf () const
const Epetra_CommComm () const
const Epetra_MapOperatorDomainMap () const
const Epetra_MapOperatorRangeMap () const
const Epetra_BlockMapMap () const
const char * Label () const

Private Attributes

Teuchos::RefCountPtr< Epetra_RowMatrixA_
 Pointer to the matrix to be preconditioned.
int MaxNumEntries_
 Maximum entries in each row.
int MaxNumEntriesA_
int AllowedBandwidth_
 Maximum allowed bandwidth.
int AllowedEntries_
 Maximum allowed entries per row.
int NumNonzeros_
 Number of nonzeros for the dropped matrix.
std::vector< int > Indices_
 Used in ExtractMyRowCopy, to avoid allocation each time.
std::vector< double > Values_
 Used in ExtractMyRowCopy, to avoid allocation each time.
char Label_ [80]
 Label for this object.
int NumRows_
std::vector< int > NumEntries_

Detailed Description

Ifpack_SparsityFilter: a class to drop based on sparsity.

Definition at line 45 of file Ifpack_SparsityFilter.h.


Constructor & Destructor Documentation

Ifpack_SparsityFilter::Ifpack_SparsityFilter ( const Teuchos::RefCountPtr< Epetra_RowMatrix > &  Matrix,
int  AllowedNumEntries,
int  AllowedBandwidth = -1 
)

Definition at line 40 of file Ifpack_SparsityFilter.cpp.

virtual Ifpack_SparsityFilter::~Ifpack_SparsityFilter (  )  [inline, virtual]

Definition at line 52 of file Ifpack_SparsityFilter.h.


Member Function Documentation

virtual int Ifpack_SparsityFilter::NumMyRowEntries ( int  MyRow,
int &  NumEntries 
) const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 54 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::MaxNumEntries (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 60 of file Ifpack_SparsityFilter.h.

int Ifpack_SparsityFilter::ExtractMyRowCopy ( int  MyRow,
int  Length,
int &  NumEntries,
double *  Values,
int *  Indices 
) const [virtual]

Implements Epetra_RowMatrix.

Definition at line 98 of file Ifpack_SparsityFilter.cpp.

int Ifpack_SparsityFilter::ExtractDiagonalCopy ( Epetra_Vector Diagonal  )  const [virtual]

Implements Epetra_RowMatrix.

Definition at line 160 of file Ifpack_SparsityFilter.cpp.

int Ifpack_SparsityFilter::Multiply ( bool  TransA,
const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [virtual]

Implements Epetra_RowMatrix.

Definition at line 167 of file Ifpack_SparsityFilter.cpp.

int Ifpack_SparsityFilter::Solve ( bool  Upper,
bool  Trans,
bool  UnitDiagonal,
const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [virtual]

Implements Epetra_RowMatrix.

Definition at line 208 of file Ifpack_SparsityFilter.cpp.

int Ifpack_SparsityFilter::Apply ( const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [virtual]

Implements Epetra_Operator.

Definition at line 216 of file Ifpack_SparsityFilter.cpp.

int Ifpack_SparsityFilter::ApplyInverse ( const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [virtual]

Implements Epetra_Operator.

Definition at line 223 of file Ifpack_SparsityFilter.cpp.

virtual int Ifpack_SparsityFilter::InvRowSums ( Epetra_Vector x  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 82 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::LeftScale ( const Epetra_Vector x  )  [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 87 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::InvColSums ( Epetra_Vector x  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 92 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::RightScale ( const Epetra_Vector x  )  [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 97 of file Ifpack_SparsityFilter.h.

virtual bool Ifpack_SparsityFilter::Filled (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 102 of file Ifpack_SparsityFilter.h.

virtual double Ifpack_SparsityFilter::NormInf (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 107 of file Ifpack_SparsityFilter.h.

virtual double Ifpack_SparsityFilter::NormOne (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 112 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::NumGlobalNonzeros (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 117 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::NumGlobalRows (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 122 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::NumGlobalCols (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 127 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::NumGlobalDiagonals (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 132 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::NumMyNonzeros (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 137 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::NumMyRows (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 142 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::NumMyCols (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 147 of file Ifpack_SparsityFilter.h.

virtual int Ifpack_SparsityFilter::NumMyDiagonals (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 152 of file Ifpack_SparsityFilter.h.

virtual bool Ifpack_SparsityFilter::LowerTriangular (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 157 of file Ifpack_SparsityFilter.h.

virtual bool Ifpack_SparsityFilter::UpperTriangular (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 162 of file Ifpack_SparsityFilter.h.

virtual const Epetra_Map& Ifpack_SparsityFilter::RowMatrixRowMap (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 167 of file Ifpack_SparsityFilter.h.

virtual const Epetra_Map& Ifpack_SparsityFilter::RowMatrixColMap (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 172 of file Ifpack_SparsityFilter.h.

virtual const Epetra_Import* Ifpack_SparsityFilter::RowMatrixImporter (  )  const [inline, virtual]

Implements Epetra_RowMatrix.

Definition at line 177 of file Ifpack_SparsityFilter.h.

int Ifpack_SparsityFilter::SetUseTranspose ( bool  UseTranspose  )  [inline, virtual]

Implements Epetra_Operator.

Definition at line 182 of file Ifpack_SparsityFilter.h.

bool Ifpack_SparsityFilter::UseTranspose (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 187 of file Ifpack_SparsityFilter.h.

bool Ifpack_SparsityFilter::HasNormInf (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 192 of file Ifpack_SparsityFilter.h.

const Epetra_Comm& Ifpack_SparsityFilter::Comm (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 197 of file Ifpack_SparsityFilter.h.

const Epetra_Map& Ifpack_SparsityFilter::OperatorDomainMap (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 202 of file Ifpack_SparsityFilter.h.

const Epetra_Map& Ifpack_SparsityFilter::OperatorRangeMap (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 207 of file Ifpack_SparsityFilter.h.

const Epetra_BlockMap& Ifpack_SparsityFilter::Map (  )  const [inline, virtual]

Implements Epetra_SrcDistObject.

Definition at line 212 of file Ifpack_SparsityFilter.h.

const char* Ifpack_SparsityFilter::Label (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 217 of file Ifpack_SparsityFilter.h.


Member Data Documentation

Teuchos::RefCountPtr<Epetra_RowMatrix> Ifpack_SparsityFilter::A_ [private]

Pointer to the matrix to be preconditioned.

Definition at line 224 of file Ifpack_SparsityFilter.h.

int Ifpack_SparsityFilter::MaxNumEntries_ [private]

Maximum entries in each row.

Definition at line 226 of file Ifpack_SparsityFilter.h.

int Ifpack_SparsityFilter::MaxNumEntriesA_ [private]

Definition at line 227 of file Ifpack_SparsityFilter.h.

int Ifpack_SparsityFilter::AllowedBandwidth_ [private]

Maximum allowed bandwidth.

Definition at line 230 of file Ifpack_SparsityFilter.h.

int Ifpack_SparsityFilter::AllowedEntries_ [private]

Maximum allowed entries per row.

Definition at line 232 of file Ifpack_SparsityFilter.h.

int Ifpack_SparsityFilter::NumNonzeros_ [private]

Number of nonzeros for the dropped matrix.

Definition at line 235 of file Ifpack_SparsityFilter.h.

std::vector<int> Ifpack_SparsityFilter::Indices_ [mutable, private]

Used in ExtractMyRowCopy, to avoid allocation each time.

Definition at line 238 of file Ifpack_SparsityFilter.h.

std::vector<double> Ifpack_SparsityFilter::Values_ [mutable, private]

Used in ExtractMyRowCopy, to avoid allocation each time.

Definition at line 240 of file Ifpack_SparsityFilter.h.

char Ifpack_SparsityFilter::Label_[80] [private]

Label for this object.

Definition at line 242 of file Ifpack_SparsityFilter.h.

int Ifpack_SparsityFilter::NumRows_ [private]

Definition at line 244 of file Ifpack_SparsityFilter.h.

std::vector<int> Ifpack_SparsityFilter::NumEntries_ [private]

Definition at line 245 of file Ifpack_SparsityFilter.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 13 09:27:26 2010 for Ifpack Package Browser (Single Doxygen Collection) by  doxygen 1.4.7