Ifpack Package Browser (Single Doxygen Collection) Development
Public Member Functions | Private Attributes
Ifpack_AMDReordering Class Reference

Ifpack_AMDReordering: approximate minimum degree reordering. More...

#include <Ifpack_AMDReordering.h>

Inheritance diagram for Ifpack_AMDReordering:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

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_AMDReordering: approximate minimum degree reordering.

Definition at line 45 of file Ifpack_AMDReordering.h.


Constructor & Destructor Documentation

Ifpack_AMDReordering::Ifpack_AMDReordering ( )

Constructor for Ifpack_Graph's.

Definition at line 45 of file Ifpack_AMDReordering.cpp.

Ifpack_AMDReordering::Ifpack_AMDReordering ( const Ifpack_AMDReordering RHS)

Copy Constructor.

Definition at line 53 of file Ifpack_AMDReordering.cpp.

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

Destructor.

Definition at line 59 of file Ifpack_AMDReordering.h.


Member Function Documentation

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

Assignment operator.

Definition at line 67 of file Ifpack_AMDReordering.cpp.

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

Sets integer parameters `Name'.

Implements Ifpack_Reordering.

Definition at line 89 of file Ifpack_AMDReordering.cpp.

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

Sets double parameters `Name'.

Implements Ifpack_Reordering.

Definition at line 96 of file Ifpack_AMDReordering.cpp.

int Ifpack_AMDReordering::SetParameters ( Teuchos::ParameterList List) [virtual]

Sets all parameters.

Implements Ifpack_Reordering.

Definition at line 103 of file Ifpack_AMDReordering.cpp.

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

Computes all it is necessary to initialize the reordering object.

Implements Ifpack_Reordering.

Definition at line 119 of file Ifpack_AMDReordering.cpp.

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

Computes all it is necessary to initialize the reordering object.

Implements Ifpack_Reordering.

Definition at line 109 of file Ifpack_AMDReordering.cpp.

bool Ifpack_AMDReordering::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_AMDReordering.h.

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

Returns the reordered index of row i.

Implements Ifpack_Reordering.

Definition at line 184 of file Ifpack_AMDReordering.cpp.

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

Returns the inverse reordered index of row i.

Implements Ifpack_Reordering.

Definition at line 197 of file Ifpack_AMDReordering.cpp.

int Ifpack_AMDReordering::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 209 of file Ifpack_AMDReordering.cpp.

int Ifpack_AMDReordering::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 225 of file Ifpack_AMDReordering.cpp.

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

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

Implements Ifpack_Reordering.

Definition at line 241 of file Ifpack_AMDReordering.cpp.

int Ifpack_AMDReordering::NumMyRows ( ) const [inline]

Returns the number of local rows.

Definition at line 101 of file Ifpack_AMDReordering.h.


Member Data Documentation

Number of local rows in the graph.

Definition at line 108 of file Ifpack_AMDReordering.h.

If true, the reordering has been successfully computed.

Definition at line 110 of file Ifpack_AMDReordering.h.

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

Contains the reordering.

Definition at line 112 of file Ifpack_AMDReordering.h.

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

Contains the inverse reordering.

Definition at line 114 of file Ifpack_AMDReordering.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines