43#ifndef IFPACK_AMDREORDERING_H
44#define IFPACK_AMDREORDERING_H
75 int SetParameter(
const std::string Name,
const int Value);
78 int SetParameter(
const std::string Name,
const double Value);
111 std::ostream&
Print(std::ostream& os)
const;
adjacency_list< vecS, vecS, undirectedS, no_property, property< edge_weight_t, double > > Graph
Ifpack_AMDReordering: approximate minimum degree reordering.
int SetParameters(Teuchos::ParameterList &List)
Sets all parameters.
int Compute(const Ifpack_Graph &Graph)
Computes all it is necessary to initialize the reordering object.
bool IsComputed_
If true, the reordering has been successfully computed.
std::vector< int > Reorder_
Contains the reordering.
Ifpack_AMDReordering()
Constructor for Ifpack_Graph's.
std::vector< int > InvReorder_
Contains the inverse reordering.
int InvReorder(const int i) const
Returns the inverse reordered index of row i.
int NumMyRows_
Number of local rows in the graph.
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.
int SetParameter(const std::string Name, const int Value)
Sets integer parameters ‘Name’.
bool IsComputed() const
Returns true is the reordering object has been successfully initialized, false otherwise.
Ifpack_AMDReordering & operator=(const Ifpack_AMDReordering &RHS)
Assignment operator.
std::ostream & Print(std::ostream &os) const
Prints basic information on iostream. This function is used by operator<<.
virtual ~Ifpack_AMDReordering()
Destructor.
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 Reorder(const int i) const
Returns the reordered index of row i.
int NumMyRows() const
Returns the number of local rows.
Ifpack_Graph: a pure virtual class that defines graphs for IFPACK.
Ifpack_Reordering: basic class for reordering for a Ifpack_Graph object.