#include <AnasaziEpetraAdapter.hpp>
Public Member Functions | |
EpetraGenOp (const Teuchos::RCP< Epetra_Operator > &AOp, const Teuchos::RCP< Epetra_Operator > &MOp, bool isAInverse=true) | |
Basic constructor for applying operator ![]() ![]() | |
~EpetraGenOp () | |
Destructor. | |
void | Apply (const MultiVec< double > &X, MultiVec< double > &Y) const |
Apply method [inherited from Anasazi::Operator class]. | |
int | Apply (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
Apply method [inherited from Epetra_Operator class]. | |
int | ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
Apply inverse method [inherited from Epetra_Operator class]. | |
const char * | Label () const |
Returns a character string describing the operator. | |
bool | UseTranspose () const |
Returns the current UseTranspose setting [always false for this operator]. | |
int | SetUseTranspose (bool UseTranspose_in) |
If set true, the transpose of this operator will be applied [not functional for this operator]. | |
bool | HasNormInf () const |
Returns true if this object can provide an approximate inf-norm [always false for this operator]. | |
double | NormInf () const |
Returns the infinity norm of the global matrix [not functional for this operator]. | |
const Epetra_Comm & | Comm () const |
Returns the Epetra_Comm communicator associated with this operator. | |
const Epetra_Map & | OperatorDomainMap () const |
Returns the Epetra_Map object associated with the domain of this operator. | |
const Epetra_Map & | OperatorRangeMap () const |
Returns the Epetra_Map object associated with the range of this operator. |
This class will apply the operation [default] or
, for the
Apply
method of the Epetra_Operator / Anasazi::Operator. The Anasazi::EpetraGenOp operator is useful when spectral transformations are used within eigensolvers. For instance, is a shift and invert spectral transformation commonly used with Anasazi::BlockKrylovSchur to compute the smallest-magnitude eigenvalues for the eigenproblem
.
Definition at line 317 of file AnasaziEpetraAdapter.hpp.
Anasazi::EpetraGenOp::EpetraGenOp | ( | const Teuchos::RCP< Epetra_Operator > & | AOp, | |
const Teuchos::RCP< Epetra_Operator > & | MOp, | |||
bool | isAInverse = true | |||
) |
Basic constructor for applying operator [default] or
.
If isAInverse
is true this operator will apply , else it will apply
.
Definition at line 289 of file AnasaziEpetraAdapter.cpp.
Anasazi::EpetraGenOp::~EpetraGenOp | ( | ) |
int Anasazi::EpetraGenOp::Apply | ( | const Epetra_MultiVector & | X, | |
Epetra_MultiVector & | Y | |||
) | const |
Apply method [inherited from Epetra_Operator class].
This method will apply or
to
X
, returning Y
.
Definition at line 334 of file AnasaziEpetraAdapter.cpp.
void Anasazi::EpetraGenOp::Apply | ( | const MultiVec< double > & | X, | |
MultiVec< double > & | Y | |||
) | const [virtual] |
Apply method [inherited from Anasazi::Operator class].
This method will apply or
to
X
, returning Y
.
Implements Anasazi::Operator< double >.
Definition at line 302 of file AnasaziEpetraAdapter.cpp.
int Anasazi::EpetraGenOp::ApplyInverse | ( | const Epetra_MultiVector & | X, | |
Epetra_MultiVector & | Y | |||
) | const |
Apply inverse method [inherited from Epetra_Operator class].
This method will apply or
to
X
, returning Y
.
Definition at line 355 of file AnasaziEpetraAdapter.cpp.
const Epetra_Comm& Anasazi::EpetraGenOp::Comm | ( | ) | const [inline] |
Returns the Epetra_Comm communicator associated with this operator.
Definition at line 361 of file AnasaziEpetraAdapter.hpp.
bool Anasazi::EpetraGenOp::HasNormInf | ( | ) | const [inline] |
Returns true if this object can provide an approximate inf-norm [always false for this operator].
Definition at line 355 of file AnasaziEpetraAdapter.hpp.
const char* Anasazi::EpetraGenOp::Label | ( | ) | const [inline] |
Returns a character string describing the operator.
Definition at line 346 of file AnasaziEpetraAdapter.hpp.
double Anasazi::EpetraGenOp::NormInf | ( | ) | const [inline] |
Returns the infinity norm of the global matrix [not functional for this operator].
Definition at line 358 of file AnasaziEpetraAdapter.hpp.
const Epetra_Map& Anasazi::EpetraGenOp::OperatorDomainMap | ( | ) | const [inline] |
Returns the Epetra_Map object associated with the domain of this operator.
Definition at line 364 of file AnasaziEpetraAdapter.hpp.
const Epetra_Map& Anasazi::EpetraGenOp::OperatorRangeMap | ( | ) | const [inline] |
Returns the Epetra_Map object associated with the range of this operator.
Definition at line 367 of file AnasaziEpetraAdapter.hpp.
int Anasazi::EpetraGenOp::SetUseTranspose | ( | bool | UseTranspose_in | ) | [inline] |
If set true, the transpose of this operator will be applied [not functional for this operator].
Definition at line 352 of file AnasaziEpetraAdapter.hpp.
bool Anasazi::EpetraGenOp::UseTranspose | ( | ) | const [inline] |
Returns the current UseTranspose setting [always false for this operator].
Definition at line 349 of file AnasaziEpetraAdapter.hpp.