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

Generates a sub-block view of a Epetra_CrsMatrix. More...

#include <EpetraExt_SubCopy_CrsMatrix.h>

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

Public Member Functions

 ~CrsMatrix_SubCopy ()
 Destructor. More...
 
 CrsMatrix_SubCopy (const Epetra_Map &newMap)
 Constructor. More...
 
 CrsMatrix_SubCopy (const Epetra_Map &newRangeAndRowMap, const Epetra_Map &newDomainMap)
 Constructor. More...
 
NewTypeRef operator() (OriginalTypeRef orig)
 Transformation Operator. More...
 
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...
 
- 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 transform (OriginalTypeRef orig)
 

Private Attributes

Epetra_Map newRowMap_
 
Epetra_Map newColMap_
 
Epetra_Map newDomainMap_
 
Epetra_Map newRangeMap_
 
Epetra_Importimporter_
 

Additional Inherited Members

- Public Types inherited from EpetraExt::SameTypeTransform< Epetra_CrsMatrix >
typedef Epetra_CrsMatrix TransformType
 
typedef Epetra_CrsMatrixTransformTypePtr
 
typedef Epetra_CrsMatrixTransformTypeRef
 
- Public Types inherited from EpetraExt::Transform< Epetra_CrsMatrix, Epetra_CrsMatrix >
typedef Epetra_CrsMatrix OriginalType
 
typedef Epetra_CrsMatrixOriginalTypePtr
 
typedef Teuchos::RCP< Epetra_CrsMatrixOriginalTypeRCP
 
typedef Epetra_CrsMatrixOriginalTypeRef
 
typedef Epetra_CrsMatrix NewType
 
typedef Epetra_CrsMatrixNewTypePtr
 
typedef Teuchos::RCP< Epetra_CrsMatrixNewTypeRCP
 
typedef Epetra_CrsMatrixNewTypeRef
 
- 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

Generates a sub-block view of a Epetra_CrsMatrix.

Definition at line 54 of file EpetraExt_SubCopy_CrsMatrix.h.

Constructor & Destructor Documentation

◆ ~CrsMatrix_SubCopy()

EpetraExt::CrsMatrix_SubCopy::~CrsMatrix_SubCopy ( )

Destructor.

Definition at line 55 of file EpetraExt_SubCopy_CrsMatrix.cpp.

◆ CrsMatrix_SubCopy() [1/2]

EpetraExt::CrsMatrix_SubCopy::CrsMatrix_SubCopy ( const Epetra_Map newMap)
inline

Constructor.

Definition at line 69 of file EpetraExt_SubCopy_CrsMatrix.h.

◆ CrsMatrix_SubCopy() [2/2]

EpetraExt::CrsMatrix_SubCopy::CrsMatrix_SubCopy ( const Epetra_Map newRangeAndRowMap,
const Epetra_Map newDomainMap 
)
inline

Constructor.

Definition at line 77 of file EpetraExt_SubCopy_CrsMatrix.h.

Member Function Documentation

◆ operator()()

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

Transformation Operator.

Definition at line 134 of file EpetraExt_SubCopy_CrsMatrix.cpp.

◆ fwd()

bool EpetraExt::CrsMatrix_SubCopy::fwd ( )
virtual

Forward transfer of data from orig object input in the operator() method call to the new object created in this same call.

Returns true is operation is successful.

Preconditions:

Invariants:

Postconditions:

Implements EpetraExt::Transform< Epetra_CrsMatrix, Epetra_CrsMatrix >.

Definition at line 155 of file EpetraExt_SubCopy_CrsMatrix.cpp.

◆ rvs()

bool EpetraExt::CrsMatrix_SubCopy::rvs ( )
virtual

Reverse transfer of data from new object created in the operator() method call to the orig object input to this same method.

Returns true if operation is successful.

Preconditions:

Invariants:

Postconditions:

Implements EpetraExt::Transform< Epetra_CrsMatrix, Epetra_CrsMatrix >.

Definition at line 169 of file EpetraExt_SubCopy_CrsMatrix.cpp.

◆ transform()

template<typename int_type >
CrsMatrix_SubCopy::NewTypeRef EpetraExt::CrsMatrix_SubCopy::transform ( OriginalTypeRef  orig)
private

Definition at line 63 of file EpetraExt_SubCopy_CrsMatrix.cpp.

Member Data Documentation

◆ newRowMap_

Epetra_Map EpetraExt::CrsMatrix_SubCopy::newRowMap_
private

Definition at line 56 of file EpetraExt_SubCopy_CrsMatrix.h.

◆ newColMap_

Epetra_Map EpetraExt::CrsMatrix_SubCopy::newColMap_
private

Definition at line 57 of file EpetraExt_SubCopy_CrsMatrix.h.

◆ newDomainMap_

Epetra_Map EpetraExt::CrsMatrix_SubCopy::newDomainMap_
private

Definition at line 58 of file EpetraExt_SubCopy_CrsMatrix.h.

◆ newRangeMap_

Epetra_Map EpetraExt::CrsMatrix_SubCopy::newRangeMap_
private

Definition at line 59 of file EpetraExt_SubCopy_CrsMatrix.h.

◆ importer_

Epetra_Import* EpetraExt::CrsMatrix_SubCopy::importer_
private

Definition at line 60 of file EpetraExt_SubCopy_CrsMatrix.h.


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