Ifpack_RCMReordering Class Reference

Ifpack_RCMReordering: reverse Cuthill-McKee reordering. More...

#include <Ifpack_RCMReordering.h>

Inheritance diagram for Ifpack_RCMReordering:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Ifpack_RCMReordering ()
 Constructor for Ifpack_Graph's.
 Ifpack_RCMReordering (const Ifpack_RCMReordering &RHS)
 Copy Constructor.
Ifpack_RCMReorderingoperator= (const Ifpack_RCMReordering &RHS)
 Assignment operator.
virtual ~Ifpack_RCMReordering ()
 Destructor.
virtual int SetParameter (const string Name, const int Value)
 Sets integer parameters `Name'.
virtual int SetParameter (const string Name, const double Value)
 Sets double parameters `Name'.
virtual int SetParameters (Teuchos::ParameterList &List)
 Sets all parameters.
virtual int Compute (const Ifpack_Graph &Graph)
 Computes all it is necessary to initialize the reordering object.
virtual int Compute (const Epetra_RowMatrix &Matrix)
 Computes all it is necessary to initialize the reordering object.
virtual bool IsComputed () const
 Returns true is the reordering object has been successfully initialized, false otherwise.
virtual int Reorder (const int i) const
 Returns the reordered index of row i.
virtual int InvReorder (const int i) const
 Returns the inverse reordered index of row i.
virtual int P (const Epetra_MultiVector &Xorig, Epetra_MultiVector &Xreord) const
 Applies reordering to multivector X, whose local length equals the number of local rows.
virtual int Pinv (const Epetra_MultiVector &Xorig, Epetra_MultiVector &Xinvreord) const
 Applies inverse reordering to multivector X, whose local length equals the number of local rows.
virtual ostream & Print (std::ostream &os) const
 Prints basic information on iostream. This function is used by operator<<.
virtual int NumMyRows () const
 Returns the number of local rows.
virtual int RootNode () const
 Returns the root node.

Private Attributes

int RootNode_
 Defines the root node (defaulted to 0).
int NumMyRows_
 Number of local rows in the graph.
bool IsComputed_
 If true, the reordering has been successfully computed.
std::vector< int > Reorder_
 Contains the reordering.
std::vector< int > InvReorder_
 Contains the inverse reordering.

Detailed Description

Ifpack_RCMReordering: reverse Cuthill-McKee reordering.

Definition at line 45 of file Ifpack_RCMReordering.h.


Constructor & Destructor Documentation

Ifpack_RCMReordering::Ifpack_RCMReordering (  ) 

Constructor for Ifpack_Graph's.

Definition at line 41 of file Ifpack_RCMReordering.cpp.

Ifpack_RCMReordering::Ifpack_RCMReordering ( const Ifpack_RCMReordering RHS  ) 

Copy Constructor.

Definition at line 50 of file Ifpack_RCMReordering.cpp.

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

Destructor.

Definition at line 59 of file Ifpack_RCMReordering.h.


Member Function Documentation

Ifpack_RCMReordering & Ifpack_RCMReordering::operator= ( const Ifpack_RCMReordering RHS  ) 

Assignment operator.

Definition at line 65 of file Ifpack_RCMReordering.cpp.

int Ifpack_RCMReordering::SetParameter ( const string  Name,
const int  Value 
) [virtual]

Sets integer parameters `Name'.

Implements Ifpack_Reordering.

Definition at line 88 of file Ifpack_RCMReordering.cpp.

int Ifpack_RCMReordering::SetParameter ( const string  Name,
const double  Value 
) [virtual]

Sets double parameters `Name'.

Implements Ifpack_Reordering.

Definition at line 97 of file Ifpack_RCMReordering.cpp.

int Ifpack_RCMReordering::SetParameters ( Teuchos::ParameterList &  List  )  [virtual]

Sets all parameters.

Implements Ifpack_Reordering.

Definition at line 104 of file Ifpack_RCMReordering.cpp.

int Ifpack_RCMReordering::Compute ( const Ifpack_Graph Graph  )  [virtual]

Computes all it is necessary to initialize the reordering object.

Implements Ifpack_Reordering.

Definition at line 121 of file Ifpack_RCMReordering.cpp.

int Ifpack_RCMReordering::Compute ( const Epetra_RowMatrix Matrix  )  [virtual]

Computes all it is necessary to initialize the reordering object.

Implements Ifpack_Reordering.

Definition at line 111 of file Ifpack_RCMReordering.cpp.

virtual bool Ifpack_RCMReordering::IsComputed (  )  const [inline, virtual]

Returns true is the reordering object has been successfully initialized, false otherwise.

Implements Ifpack_Reordering.

Definition at line 77 of file Ifpack_RCMReordering.h.

int Ifpack_RCMReordering::Reorder ( const int  i  )  const [inline, virtual]

Returns the reordered index of row i.

Implements Ifpack_Reordering.

Definition at line 224 of file Ifpack_RCMReordering.cpp.

int Ifpack_RCMReordering::InvReorder ( const int  i  )  const [inline, virtual]

Returns the inverse reordered index of row i.

Implements Ifpack_Reordering.

Definition at line 237 of file Ifpack_RCMReordering.cpp.

int Ifpack_RCMReordering::P ( const Epetra_MultiVector Xorig,
Epetra_MultiVector Xreord 
) const [virtual]

Applies reordering to multivector X, whose local length equals the number of local rows.

Implements Ifpack_Reordering.

Definition at line 249 of file Ifpack_RCMReordering.cpp.

int Ifpack_RCMReordering::Pinv ( const Epetra_MultiVector Xorig,
Epetra_MultiVector Xinvreord 
) const [virtual]

Applies inverse reordering to multivector X, whose local length equals the number of local rows.

Implements Ifpack_Reordering.

Definition at line 265 of file Ifpack_RCMReordering.cpp.

ostream & Ifpack_RCMReordering::Print ( std::ostream &  os  )  const [virtual]

Prints basic information on iostream. This function is used by operator<<.

Implements Ifpack_Reordering.

Definition at line 281 of file Ifpack_RCMReordering.cpp.

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

Returns the number of local rows.

Definition at line 101 of file Ifpack_RCMReordering.h.

virtual int Ifpack_RCMReordering::RootNode (  )  const [inline, virtual]

Returns the root node.

Definition at line 107 of file Ifpack_RCMReordering.h.


Member Data Documentation

int Ifpack_RCMReordering::RootNode_ [private]

Defines the root node (defaulted to 0).

Definition at line 114 of file Ifpack_RCMReordering.h.

int Ifpack_RCMReordering::NumMyRows_ [private]

Number of local rows in the graph.

Definition at line 116 of file Ifpack_RCMReordering.h.

bool Ifpack_RCMReordering::IsComputed_ [private]

If true, the reordering has been successfully computed.

Definition at line 118 of file Ifpack_RCMReordering.h.

std::vector<int> Ifpack_RCMReordering::Reorder_ [private]

Contains the reordering.

Definition at line 120 of file Ifpack_RCMReordering.h.

std::vector<int> Ifpack_RCMReordering::InvReorder_ [private]

Contains the inverse reordering.

Definition at line 122 of file Ifpack_RCMReordering.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