EpetraExt Package Browser (Single Doxygen Collection)  Development
Public Member Functions | Private Member Functions | Private Attributes | List of all members
EpetraExt::CrsMatrix_Reindex Class Reference

Given an Epetra_CrsMatrix, a "reindexed" version is returned based on the new row map. More...

#include <EpetraExt_Reindex_CrsMatrix.h>

Inheritance diagram for EpetraExt::CrsMatrix_Reindex:
Inheritance graph
[legend]

Public Member Functions

 ~CrsMatrix_Reindex ()
 Destructor. More...
 
 CrsMatrix_Reindex (const Epetra_Map &new_row_map)
 Constructor. More...
 
NewTypeRef operator() (OriginalTypeRef orig)
 Constructs "reindexed" Matrix. More...
 
- Public Member Functions inherited from EpetraExt::ViewTransform< Epetra_CrsMatrix >
bool fwd ()
 Forward transfer of data from orig object input in the operator() method call to the new object created in this same call. More...
 
bool rvs ()
 Reverse transfer of data from new object created in the operator() method call to the orig object input to this same method. More...
 
virtual ~ViewTransform ()
 
- Public Member Functions inherited from EpetraExt::SameTypeTransform< Epetra_CrsMatrix >
virtual ~SameTypeTransform ()
 
- Public Member Functions inherited from EpetraExt::Transform< Epetra_CrsMatrix, Epetra_CrsMatrix >
virtual ~Transform ()
 
virtual NewTypeRef operator() (OriginalTypeRef orig)=0
 Analysis of transform operation on original object and construction of new object. More...
 
virtual bool analyze (OriginalTypeRef orig)
 Initial analysis phase of transform. More...
 
virtual NewTypeRef construct ()
 Construction of new object as a result of the transform. More...
 
virtual bool isConstructed ()
 Check for whether transformed object has been constructed. More...
 

Private Member Functions

template<typename int_type >
NewTypeRef Toperator (OriginalTypeRef orig)
 

Private Attributes

const Epetra_Map & NewRowMap_
 
Epetra_Map * NewColMap_
 

Additional Inherited Members

- Public Types inherited from EpetraExt::SameTypeTransform< Epetra_CrsMatrix >
typedef Epetra_CrsMatrix TransformType
 
typedef Epetra_CrsMatrix * TransformTypePtr
 
typedef Epetra_CrsMatrix & TransformTypeRef
 
- Public Types inherited from EpetraExt::Transform< Epetra_CrsMatrix, Epetra_CrsMatrix >
typedef Epetra_CrsMatrix OriginalType
 
typedef Epetra_CrsMatrix * OriginalTypePtr
 
typedef Teuchos::RCP< Epetra_CrsMatrix > OriginalTypeRCP
 
typedef Epetra_CrsMatrix & OriginalTypeRef
 
typedef Epetra_CrsMatrix NewType
 
typedef Epetra_CrsMatrix * NewTypePtr
 
typedef Teuchos::RCP< Epetra_CrsMatrix > NewTypeRCP
 
typedef Epetra_CrsMatrix & NewTypeRef
 
- Protected Member Functions inherited from EpetraExt::Transform< Epetra_CrsMatrix, Epetra_CrsMatrix >
 Transform ()
 Default constructor, protected to allow only derived classes to use. More...
 
- Protected Attributes inherited from EpetraExt::Transform< Epetra_CrsMatrix, Epetra_CrsMatrix >
OriginalTypePtr origObj_
 
NewTypePtr newObj_
 

Detailed Description

Given an Epetra_CrsMatrix, a "reindexed" version is returned based on the new row map.

The row map must be conformal to the original. The Matrix data will be shared by the new Matrix using the new indexing

Definition at line 57 of file EpetraExt_Reindex_CrsMatrix.h.

Constructor & Destructor Documentation

◆ ~CrsMatrix_Reindex()

EpetraExt::CrsMatrix_Reindex::~CrsMatrix_Reindex ( )

Destructor.

Definition at line 61 of file EpetraExt_Reindex_CrsMatrix.cpp.

◆ CrsMatrix_Reindex()

EpetraExt::CrsMatrix_Reindex::CrsMatrix_Reindex ( const Epetra_Map &  new_row_map)
inline

Constructor.

Definition at line 72 of file EpetraExt_Reindex_CrsMatrix.h.

Member Function Documentation

◆ operator()()

CrsMatrix_Reindex::NewTypeRef EpetraExt::CrsMatrix_Reindex::operator() ( OriginalTypeRef  orig)

Constructs "reindexed" Matrix.

Definition at line 135 of file EpetraExt_Reindex_CrsMatrix.cpp.

◆ Toperator()

template<typename int_type >
CrsMatrix_Reindex::NewTypeRef EpetraExt::CrsMatrix_Reindex::Toperator ( OriginalTypeRef  orig)
private

Definition at line 70 of file EpetraExt_Reindex_CrsMatrix.cpp.

Member Data Documentation

◆ NewRowMap_

const Epetra_Map& EpetraExt::CrsMatrix_Reindex::NewRowMap_
private

Definition at line 59 of file EpetraExt_Reindex_CrsMatrix.h.

◆ NewColMap_

Epetra_Map* EpetraExt::CrsMatrix_Reindex::NewColMap_
private

Definition at line 60 of file EpetraExt_Reindex_CrsMatrix.h.


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