43 #ifndef IFPACK_RCMREORDERING_H 44 #define IFPACK_RCMREORDERING_H 53 class Epetra_MultiVector;
54 class Epetra_RowMatrix;
75 virtual int SetParameter(
const std::string Name,
const int Value);
78 virtual int SetParameter(
const std::string Name,
const double Value);
87 virtual int Compute(
const Epetra_RowMatrix& Matrix);
96 virtual int Reorder(
const int i)
const;
102 virtual int P(
const Epetra_MultiVector& Xorig,
103 Epetra_MultiVector& Xreord)
const;
106 virtual int Pinv(
const Epetra_MultiVector& Xorig,
107 Epetra_MultiVector& Xinvreord)
const;
111 virtual std::ostream&
Print(std::ostream& os)
const;
virtual int InvReorder(const int i) const
Returns the inverse reordered index of row i.
virtual std::ostream & Print(std::ostream &os) const
Prints basic information on iostream. This function is used by operator<<.
virtual int Compute(const Ifpack_Graph &Graph)
Computes all it is necessary to initialize the reordering object.
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...
int NumMyRows_
Number of local rows in the graph.
bool IsComputed_
If true, the reordering has been successfully computed.
Ifpack_Reordering: basic class for reordering for a Ifpack_Graph object.
Ifpack_RCMReordering: reverse Cuthill-McKee reordering.
int RootNode_
Defines the root node (defaulted to 0).
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.
adjacency_list< vecS, vecS, undirectedS, no_property, property< edge_weight_t, double > > Graph
virtual int RootNode() const
Returns the root node.
virtual ~Ifpack_RCMReordering()
Destructor.
Ifpack_Graph: a pure virtual class that defines graphs for IFPACK.
virtual int SetParameters(Teuchos::ParameterList &List)
Sets all parameters.
virtual int NumMyRows() const
Returns the number of local rows.
std::vector< int > Reorder_
Contains the reordering.
virtual int SetParameter(const std::string Name, const int Value)
Sets integer parameters ‘Name’.
Ifpack_RCMReordering & operator=(const Ifpack_RCMReordering &RHS)
Assignment operator.
std::vector< int > InvReorder_
Contains the inverse reordering.
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...
Ifpack_RCMReordering()
Constructor for Ifpack_Graph's.