Ifpack Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Ifpack_SingletonFilter Class Reference

Ifpack_SingletonFilter: Filter based on matrix entries. More...

#include <Ifpack_SingletonFilter.h>

Inheritance diagram for Ifpack_SingletonFilter:
Inheritance graph
[legend]

Public Member Functions

 Ifpack_SingletonFilter (const Teuchos::RefCountPtr< Epetra_RowMatrix > &Matrix)
 Constructor. More...
 
virtual ~Ifpack_SingletonFilter ()
 Destructor. More...
 
virtual int NumMyRowEntries (int MyRow, int &) const
 Returns the number of entries in MyRow. More...
 
virtual int MaxNumEntries () const
 Returns the maximum number of entries. More...
 
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 &) const
 
virtual int LeftScale (const Epetra_Vector &)
 
virtual int InvColSums (Epetra_Vector &) const
 
virtual int RightScale (const Epetra_Vector &)
 
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 long long NumGlobalNonzeros64 () const
 
virtual long long NumGlobalRows64 () const
 
virtual long long NumGlobalCols64 () const
 
virtual long long NumGlobalDiagonals64 () 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_in)
 
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
 
int SolveSingletons (const Epetra_MultiVector &RHS, Epetra_MultiVector &LHS)
 
int CreateReducedRHS (const Epetra_MultiVector &LHS, const Epetra_MultiVector &RHS, Epetra_MultiVector &ReducedRHS)
 
int UpdateLHS (const Epetra_MultiVector &ReducedLHS, Epetra_MultiVector &LHS)
 

Private Attributes

Teuchos::RefCountPtr
< Epetra_RowMatrix
A_
 Pointer to the matrix to be preconditioned. More...
 
std::vector< int > Indices_
 Used in ExtractMyRowCopy, to avoid allocation each time. More...
 
std::vector< double > Values_
 Used in ExtractMyRowCopy, to avoid allocation each time. More...
 
char Label_ [80]
 Label for this object. More...
 
int NumSingletons_
 
std::vector< int > SingletonIndex_
 
std::vector< int > Reorder_
 
std::vector< int > InvReorder_
 
std::vector< int > NumEntries_
 
int NumRows_
 
int NumRowsA_
 
int MaxNumEntries_
 
int MaxNumEntriesA_
 
int NumNonzeros_
 
Teuchos::RefCountPtr< Epetra_MapMap_
 
Teuchos::RefCountPtr
< Epetra_Vector
Diagonal_
 

Detailed Description

Ifpack_SingletonFilter: Filter based on matrix entries.

Definition at line 64 of file Ifpack_SingletonFilter.h.

Constructor & Destructor Documentation

Ifpack_SingletonFilter::Ifpack_SingletonFilter ( const Teuchos::RefCountPtr< Epetra_RowMatrix > &  Matrix)

Constructor.

Definition at line 54 of file Ifpack_SingletonFilter.cpp.

virtual Ifpack_SingletonFilter::~Ifpack_SingletonFilter ( )
inlinevirtual

Destructor.

Definition at line 71 of file Ifpack_SingletonFilter.h.

Member Function Documentation

virtual int Ifpack_SingletonFilter::NumMyRowEntries ( int  MyRow,
int &   
) const
inlinevirtual

Returns the number of entries in MyRow.

Implements Epetra_RowMatrix.

Definition at line 74 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::MaxNumEntries ( ) const
inlinevirtual

Returns the maximum number of entries.

Implements Epetra_RowMatrix.

Definition at line 80 of file Ifpack_SingletonFilter.h.

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

Implements Epetra_RowMatrix.

Definition at line 151 of file Ifpack_SingletonFilter.cpp.

int Ifpack_SingletonFilter::ExtractDiagonalCopy ( Epetra_Vector Diagonal) const
virtual

Implements Epetra_RowMatrix.

Definition at line 176 of file Ifpack_SingletonFilter.cpp.

int Ifpack_SingletonFilter::Multiply ( bool  TransA,
const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const
virtual

Implements Epetra_RowMatrix.

Definition at line 184 of file Ifpack_SingletonFilter.cpp.

int Ifpack_SingletonFilter::Solve ( bool  Upper,
bool  Trans,
bool  UnitDiagonal,
const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const
virtual

Implements Epetra_RowMatrix.

Definition at line 231 of file Ifpack_SingletonFilter.cpp.

int Ifpack_SingletonFilter::Apply ( const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const
virtual

Implements Epetra_Operator.

Definition at line 239 of file Ifpack_SingletonFilter.cpp.

int Ifpack_SingletonFilter::ApplyInverse ( const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const
virtual

Implements Epetra_Operator.

Definition at line 247 of file Ifpack_SingletonFilter.cpp.

virtual int Ifpack_SingletonFilter::InvRowSums ( Epetra_Vector ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 102 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::LeftScale ( const Epetra_Vector )
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 107 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::InvColSums ( Epetra_Vector ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 112 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::RightScale ( const Epetra_Vector )
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 117 of file Ifpack_SingletonFilter.h.

virtual bool Ifpack_SingletonFilter::Filled ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 122 of file Ifpack_SingletonFilter.h.

virtual double Ifpack_SingletonFilter::NormInf ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 127 of file Ifpack_SingletonFilter.h.

virtual double Ifpack_SingletonFilter::NormOne ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 132 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::NumGlobalNonzeros ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 138 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::NumGlobalRows ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 143 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::NumGlobalCols ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 148 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::NumGlobalDiagonals ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 153 of file Ifpack_SingletonFilter.h.

virtual long long Ifpack_SingletonFilter::NumGlobalNonzeros64 ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 159 of file Ifpack_SingletonFilter.h.

virtual long long Ifpack_SingletonFilter::NumGlobalRows64 ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 164 of file Ifpack_SingletonFilter.h.

virtual long long Ifpack_SingletonFilter::NumGlobalCols64 ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 169 of file Ifpack_SingletonFilter.h.

virtual long long Ifpack_SingletonFilter::NumGlobalDiagonals64 ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 174 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::NumMyNonzeros ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 179 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::NumMyRows ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 184 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::NumMyCols ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 189 of file Ifpack_SingletonFilter.h.

virtual int Ifpack_SingletonFilter::NumMyDiagonals ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 194 of file Ifpack_SingletonFilter.h.

virtual bool Ifpack_SingletonFilter::LowerTriangular ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 199 of file Ifpack_SingletonFilter.h.

virtual bool Ifpack_SingletonFilter::UpperTriangular ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 204 of file Ifpack_SingletonFilter.h.

virtual const Epetra_Map& Ifpack_SingletonFilter::RowMatrixRowMap ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 209 of file Ifpack_SingletonFilter.h.

virtual const Epetra_Map& Ifpack_SingletonFilter::RowMatrixColMap ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 214 of file Ifpack_SingletonFilter.h.

virtual const Epetra_Import* Ifpack_SingletonFilter::RowMatrixImporter ( ) const
inlinevirtual

Implements Epetra_RowMatrix.

Definition at line 219 of file Ifpack_SingletonFilter.h.

int Ifpack_SingletonFilter::SetUseTranspose ( bool  UseTranspose_in)
inlinevirtual

Implements Epetra_Operator.

Definition at line 224 of file Ifpack_SingletonFilter.h.

bool Ifpack_SingletonFilter::UseTranspose ( ) const
inlinevirtual

Implements Epetra_Operator.

Definition at line 229 of file Ifpack_SingletonFilter.h.

bool Ifpack_SingletonFilter::HasNormInf ( ) const
inlinevirtual

Implements Epetra_Operator.

Definition at line 234 of file Ifpack_SingletonFilter.h.

const Epetra_Comm& Ifpack_SingletonFilter::Comm ( ) const
inlinevirtual

Implements Epetra_Operator.

Definition at line 239 of file Ifpack_SingletonFilter.h.

const Epetra_Map& Ifpack_SingletonFilter::OperatorDomainMap ( ) const
inlinevirtual

Implements Epetra_Operator.

Definition at line 244 of file Ifpack_SingletonFilter.h.

const Epetra_Map& Ifpack_SingletonFilter::OperatorRangeMap ( ) const
inlinevirtual

Implements Epetra_Operator.

Definition at line 249 of file Ifpack_SingletonFilter.h.

const Epetra_BlockMap& Ifpack_SingletonFilter::Map ( ) const
inlinevirtual

Implements Epetra_SrcDistObject.

Definition at line 254 of file Ifpack_SingletonFilter.h.

const char* Ifpack_SingletonFilter::Label ( ) const
inlinevirtual

Implements Epetra_Operator.

Definition at line 259 of file Ifpack_SingletonFilter.h.

int Ifpack_SingletonFilter::SolveSingletons ( const Epetra_MultiVector RHS,
Epetra_MultiVector LHS 
)

Definition at line 254 of file Ifpack_SingletonFilter.cpp.

int Ifpack_SingletonFilter::CreateReducedRHS ( const Epetra_MultiVector LHS,
const Epetra_MultiVector RHS,
Epetra_MultiVector ReducedRHS 
)

Definition at line 276 of file Ifpack_SingletonFilter.cpp.

int Ifpack_SingletonFilter::UpdateLHS ( const Epetra_MultiVector ReducedLHS,
Epetra_MultiVector LHS 
)

Definition at line 304 of file Ifpack_SingletonFilter.cpp.

Member Data Documentation

Teuchos::RefCountPtr<Epetra_RowMatrix> Ifpack_SingletonFilter::A_
private

Pointer to the matrix to be preconditioned.

Definition at line 276 of file Ifpack_SingletonFilter.h.

std::vector<int> Ifpack_SingletonFilter::Indices_
mutableprivate

Used in ExtractMyRowCopy, to avoid allocation each time.

Definition at line 279 of file Ifpack_SingletonFilter.h.

std::vector<double> Ifpack_SingletonFilter::Values_
mutableprivate

Used in ExtractMyRowCopy, to avoid allocation each time.

Definition at line 281 of file Ifpack_SingletonFilter.h.

char Ifpack_SingletonFilter::Label_[80]
private

Label for this object.

Definition at line 283 of file Ifpack_SingletonFilter.h.

int Ifpack_SingletonFilter::NumSingletons_
private

Definition at line 285 of file Ifpack_SingletonFilter.h.

std::vector<int> Ifpack_SingletonFilter::SingletonIndex_
private

Definition at line 286 of file Ifpack_SingletonFilter.h.

std::vector<int> Ifpack_SingletonFilter::Reorder_
private

Definition at line 288 of file Ifpack_SingletonFilter.h.

std::vector<int> Ifpack_SingletonFilter::InvReorder_
private

Definition at line 289 of file Ifpack_SingletonFilter.h.

std::vector<int> Ifpack_SingletonFilter::NumEntries_
private

Definition at line 291 of file Ifpack_SingletonFilter.h.

int Ifpack_SingletonFilter::NumRows_
private

Definition at line 293 of file Ifpack_SingletonFilter.h.

int Ifpack_SingletonFilter::NumRowsA_
private

Definition at line 294 of file Ifpack_SingletonFilter.h.

int Ifpack_SingletonFilter::MaxNumEntries_
private

Definition at line 295 of file Ifpack_SingletonFilter.h.

int Ifpack_SingletonFilter::MaxNumEntriesA_
private

Definition at line 296 of file Ifpack_SingletonFilter.h.

int Ifpack_SingletonFilter::NumNonzeros_
private

Definition at line 297 of file Ifpack_SingletonFilter.h.

Teuchos::RefCountPtr<Epetra_Map> Ifpack_SingletonFilter::Map_
private

Definition at line 298 of file Ifpack_SingletonFilter.h.

Teuchos::RefCountPtr<Epetra_Vector> Ifpack_SingletonFilter::Diagonal_
private

Definition at line 300 of file Ifpack_SingletonFilter.h.


The documentation for this class was generated from the following files: