Thyra::EpetraOperatorWrapper Class Reference
[Thyra/Epetra Operator/Vector Adapter Code]

Implements the Epetra_Operator interface with a Thyra LinearOperator. More...

#include <Thyra_EpetraOperatorWrapper.hpp>

Inheritance diagram for Thyra::EpetraOperatorWrapper:
Inheritance graph
[legend]

List of all members.

Related Functions

(Note that these are not member functions.)



RCP< const LinearOpBase< double > > makeEpetraWrapper (const RCP< const LinearOpBase< double > > &thyraOp)
 Wrap a Thyra operator in the Epetra_Operator interface, and then wrap it again in a Thyra operator interface.

Constructor, utilties.



 EpetraOperatorWrapper (const RCP< const LinearOpBase< double > > &thyraOp)
 
void copyEpetraIntoThyra (const Epetra_MultiVector &x, const Ptr< VectorBase< double > > &thyraVec) const
 
void copyThyraIntoEpetra (const VectorBase< double > &thyraVec, Epetra_MultiVector &x) const
 

Overridden from Epetra_Operator



int SetUseTranspose (bool UseTranspose_in)
 
int Apply (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
 
int ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
 
double NormInf () const
 
const char * Label () const
 
bool UseTranspose () const
 
bool HasNormInf () const
 
const Epetra_CommComm () const
 
const Epetra_MapOperatorDomainMap () const
 
const Epetra_MapOperatorRangeMap () const
 

Detailed Description

Implements the Epetra_Operator interface with a Thyra LinearOperator.

This enables the use of absrtact Thyra operators in AztecOO as preconditioners and operators, without being rendered into concrete Epetra matrices.

Definition at line 50 of file Thyra_EpetraOperatorWrapper.hpp.


Constructor & Destructor Documentation

Thyra::EpetraOperatorWrapper::EpetraOperatorWrapper ( const RCP< const LinearOpBase< double > > &  thyraOp  ) 

Definition at line 36 of file Thyra_EpetraOperatorWrapper.cpp.


Member Function Documentation

void Thyra::EpetraOperatorWrapper::copyEpetraIntoThyra ( const Epetra_MultiVector x,
const Ptr< VectorBase< double > > &  thyraVec 
) const

Definition at line 50 of file Thyra_EpetraOperatorWrapper.cpp.

void Thyra::EpetraOperatorWrapper::copyThyraIntoEpetra ( const VectorBase< double > &  thyraVec,
Epetra_MultiVector x 
) const

Definition at line 88 of file Thyra_EpetraOperatorWrapper.cpp.

int Thyra::EpetraOperatorWrapper::SetUseTranspose ( bool  UseTranspose_in  )  [inline, virtual]

Implements Epetra_Operator.

Definition at line 74 of file Thyra_EpetraOperatorWrapper.hpp.

int Thyra::EpetraOperatorWrapper::Apply ( const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [virtual]

Implements Epetra_Operator.

Definition at line 127 of file Thyra_EpetraOperatorWrapper.cpp.

int Thyra::EpetraOperatorWrapper::ApplyInverse ( const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [virtual]

Implements Epetra_Operator.

Definition at line 149 of file Thyra_EpetraOperatorWrapper.cpp.

double Thyra::EpetraOperatorWrapper::NormInf (  )  const [virtual]

Implements Epetra_Operator.

Definition at line 158 of file Thyra_EpetraOperatorWrapper.cpp.

const char* Thyra::EpetraOperatorWrapper::Label (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 90 of file Thyra_EpetraOperatorWrapper.hpp.

bool Thyra::EpetraOperatorWrapper::UseTranspose (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 93 of file Thyra_EpetraOperatorWrapper.hpp.

bool Thyra::EpetraOperatorWrapper::HasNormInf (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 96 of file Thyra_EpetraOperatorWrapper.hpp.

const Epetra_Comm& Thyra::EpetraOperatorWrapper::Comm (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 99 of file Thyra_EpetraOperatorWrapper.hpp.

const Epetra_Map& Thyra::EpetraOperatorWrapper::OperatorDomainMap (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 102 of file Thyra_EpetraOperatorWrapper.hpp.

const Epetra_Map& Thyra::EpetraOperatorWrapper::OperatorRangeMap (  )  const [inline, virtual]

Implements Epetra_Operator.

Definition at line 105 of file Thyra_EpetraOperatorWrapper.hpp.


Friends And Related Function Documentation

RCP< const LinearOpBase< double > > makeEpetraWrapper ( const RCP< const LinearOpBase< double > > &  thyraOp  )  [related]

Wrap a Thyra operator in the Epetra_Operator interface, and then wrap it again in a Thyra operator interface.

This lets an arbitrary Thyra operator be given to the Thyra AztecOO adapters.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:00:54 2011 for Thyra by  doxygen 1.6.3