43 #ifndef IFPACK_AMDREORDERING_H
44 #define IFPACK_AMDREORDERING_H
46 #include "Ifpack_ConfigDefs.h"
47 #include "Ifpack_Reordering.h"
53 class Epetra_MultiVector;
54 class Epetra_RowMatrix;
87 int Compute(
const Epetra_RowMatrix& Matrix);
96 inline int Reorder(
const int i)
const;
102 int P(
const Epetra_MultiVector& Xorig,
103 Epetra_MultiVector& Xreord)
const;
106 int Pinv(
const Epetra_MultiVector& Xorig,
107 Epetra_MultiVector& Xinvreord)
const;
111 ostream&
Print(std::ostream& os)
const;
125 std::vector<int> Reorder_;
127 std::vector<int> InvReorder_;
ostream & Print(std::ostream &os) const
Prints basic information on iostream. This function is used by operator<<.
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_AMDReordering()
Constructor for Ifpack_Graph's.
int SetParameters(Teuchos::ParameterList &List)
Sets all parameters.
Ifpack_AMDReordering: approximate minimum degree reordering.
Ifpack_AMDReordering & operator=(const Ifpack_AMDReordering &RHS)
Assignment operator.
int P(const Epetra_MultiVector &Xorig, Epetra_MultiVector &Xreord) const
Applies reordering to multivector X, whose local length equals the number of local rows...
bool IsComputed() const
Returns true is the reordering object has been successfully initialized, false otherwise.
int NumMyRows() const
Returns the number of local rows.
int Compute(const Ifpack_Graph &Graph)
Computes all it is necessary to initialize the reordering object.
int Reorder(const int i) const
Returns the reordered index of row i.
Ifpack_Reordering: basic class for reordering for a Ifpack_Graph object.
int InvReorder(const int i) const
Returns the inverse reordered index of row i.
virtual ~Ifpack_AMDReordering()
Destructor.
Ifpack_Graph: a pure virtual class that defines graphs for IFPACK.
int SetParameter(const string Name, const int Value)
Sets integer parameters `Name'.