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

Ifpack_AMDReordering: approximate minimum degree reordering. More...

#include <Ifpack_AMDReordering.h>

Inheritance diagram for Ifpack_AMDReordering:
Inheritance graph
[legend]

Public Member Functions

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

Private Attributes

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

Definition at line 58 of file Ifpack_AMDReordering.h.

Constructor & Destructor Documentation

Ifpack_AMDReordering::Ifpack_AMDReordering ( )

Constructor for Ifpack_Graph's.

Definition at line 58 of file Ifpack_AMDReordering.cpp.

Ifpack_AMDReordering::Ifpack_AMDReordering ( const Ifpack_AMDReordering RHS)

Copy Constructor.

Definition at line 66 of file Ifpack_AMDReordering.cpp.

virtual Ifpack_AMDReordering::~Ifpack_AMDReordering ( )
inlinevirtual

Destructor.

Definition at line 72 of file Ifpack_AMDReordering.h.

Member Function Documentation

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

Assignment operator.

Definition at line 80 of file Ifpack_AMDReordering.cpp.

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

Sets integer parameters `Name'.

Implements Ifpack_Reordering.

Definition at line 102 of file Ifpack_AMDReordering.cpp.

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

Sets double parameters `Name'.

Implements Ifpack_Reordering.

Definition at line 109 of file Ifpack_AMDReordering.cpp.

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

Sets all parameters.

Implements Ifpack_Reordering.

Definition at line 116 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 132 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 122 of file Ifpack_AMDReordering.cpp.

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

int Ifpack_AMDReordering::Reorder ( const int  i) const
inlinevirtual

Returns the reordered index of row i.

Implements Ifpack_Reordering.

Definition at line 200 of file Ifpack_AMDReordering.cpp.

int Ifpack_AMDReordering::InvReorder ( const int  i) const
inlinevirtual

Returns the inverse reordered index of row i.

Implements Ifpack_Reordering.

Definition at line 213 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 225 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 241 of file Ifpack_AMDReordering.cpp.

std::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 257 of file Ifpack_AMDReordering.cpp.

int Ifpack_AMDReordering::NumMyRows ( ) const
inline

Returns the number of local rows.

Definition at line 114 of file Ifpack_AMDReordering.h.

Member Data Documentation

int Ifpack_AMDReordering::NumMyRows_
private

Number of local rows in the graph.

Definition at line 121 of file Ifpack_AMDReordering.h.

bool Ifpack_AMDReordering::IsComputed_
private

If true, the reordering has been successfully computed.

Definition at line 123 of file Ifpack_AMDReordering.h.

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

Contains the reordering.

Definition at line 125 of file Ifpack_AMDReordering.h.

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

Contains the inverse reordering.

Definition at line 127 of file Ifpack_AMDReordering.h.


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