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_RCMReordering Class Reference

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

#include <Ifpack_RCMReordering.h>

Inheritance diagram for Ifpack_RCMReordering:
Inheritance graph
[legend]

Public Member Functions

 Ifpack_RCMReordering ()
 Constructor for Ifpack_Graph's. More...
 
 Ifpack_RCMReordering (const Ifpack_RCMReordering &RHS)
 Copy Constructor. More...
 
Ifpack_RCMReorderingoperator= (const Ifpack_RCMReordering &RHS)
 Assignment operator. More...
 
virtual ~Ifpack_RCMReordering ()
 Destructor. More...
 
virtual int SetParameter (const std::string Name, const int Value)
 Sets integer parameters `Name'. More...
 
virtual int SetParameter (const std::string Name, const double Value)
 Sets double parameters `Name'. More...
 
virtual int SetParameters (Teuchos::ParameterList &List)
 Sets all parameters. More...
 
virtual int Compute (const Ifpack_Graph &Graph)
 Computes all it is necessary to initialize the reordering object. More...
 
virtual int Compute (const Epetra_RowMatrix &Matrix)
 Computes all it is necessary to initialize the reordering object. More...
 
virtual bool IsComputed () const
 Returns true is the reordering object has been successfully initialized, false otherwise. More...
 
virtual int Reorder (const int i) const
 Returns the reordered index of row i. More...
 
virtual int InvReorder (const int i) const
 Returns the inverse reordered index of row i. More...
 
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. More...
 
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. More...
 
virtual std::ostream & Print (std::ostream &os) const
 Prints basic information on iostream. This function is used by operator<<. More...
 
virtual int NumMyRows () const
 Returns the number of local rows. More...
 
virtual int RootNode () const
 Returns the root node. More...
 
- Public Member Functions inherited from Ifpack_Reordering
virtual ~Ifpack_Reordering ()
 Destructor. More...
 

Private Attributes

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

Detailed Description

Ifpack_RCMReordering: reverse Cuthill-McKee reordering.

Definition at line 58 of file Ifpack_RCMReordering.h.

Constructor & Destructor Documentation

Ifpack_RCMReordering::Ifpack_RCMReordering ( )

Constructor for Ifpack_Graph's.

Definition at line 54 of file Ifpack_RCMReordering.cpp.

Ifpack_RCMReordering::Ifpack_RCMReordering ( const Ifpack_RCMReordering RHS)

Copy Constructor.

Definition at line 63 of file Ifpack_RCMReordering.cpp.

virtual Ifpack_RCMReordering::~Ifpack_RCMReordering ( )
inlinevirtual

Destructor.

Definition at line 72 of file Ifpack_RCMReordering.h.

Member Function Documentation

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

Assignment operator.

Definition at line 78 of file Ifpack_RCMReordering.cpp.

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

Sets integer parameters `Name'.

Implements Ifpack_Reordering.

Definition at line 101 of file Ifpack_RCMReordering.cpp.

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

Sets double parameters `Name'.

Implements Ifpack_Reordering.

Definition at line 110 of file Ifpack_RCMReordering.cpp.

int Ifpack_RCMReordering::SetParameters ( Teuchos::ParameterList List)
virtual

Sets all parameters.

Implements Ifpack_Reordering.

Definition at line 117 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 134 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 124 of file Ifpack_RCMReordering.cpp.

virtual bool Ifpack_RCMReordering::IsComputed ( ) const
inlinevirtual

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

Implements Ifpack_Reordering.

Definition at line 90 of file Ifpack_RCMReordering.h.

int Ifpack_RCMReordering::Reorder ( const int  i) const
virtual

Returns the reordered index of row i.

Implements Ifpack_Reordering.

Definition at line 237 of file Ifpack_RCMReordering.cpp.

int Ifpack_RCMReordering::InvReorder ( const int  i) const
virtual

Returns the inverse reordered index of row i.

Implements Ifpack_Reordering.

Definition at line 250 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 262 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 278 of file Ifpack_RCMReordering.cpp.

std::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 294 of file Ifpack_RCMReordering.cpp.

virtual int Ifpack_RCMReordering::NumMyRows ( ) const
inlinevirtual

Returns the number of local rows.

Definition at line 114 of file Ifpack_RCMReordering.h.

virtual int Ifpack_RCMReordering::RootNode ( ) const
inlinevirtual

Returns the root node.

Definition at line 120 of file Ifpack_RCMReordering.h.

Member Data Documentation

int Ifpack_RCMReordering::RootNode_
private

Defines the root node (defaulted to 0).

Definition at line 127 of file Ifpack_RCMReordering.h.

int Ifpack_RCMReordering::NumMyRows_
private

Number of local rows in the graph.

Definition at line 129 of file Ifpack_RCMReordering.h.

bool Ifpack_RCMReordering::IsComputed_
private

If true, the reordering has been successfully computed.

Definition at line 131 of file Ifpack_RCMReordering.h.

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

Contains the reordering.

Definition at line 133 of file Ifpack_RCMReordering.h.

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

Contains the inverse reordering.

Definition at line 135 of file Ifpack_RCMReordering.h.


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