#include <Teko_EpetraHelpers.hpp>
Inherits Epetra_Operator.
Public Member Functions | |
ZeroedOperator (const std::vector< int > &zeroIndices, const Teuchos::RCP< const Epetra_Operator > &op) | |
Constructor for a ZeroedOperator. More... | |
Functions required by Epetra_Operator | |
virtual | ~ZeroedOperator () |
Do nothing destructor. More... | |
int | SetUseTranspose (bool) |
Can't transpose a ZeroedOperator. More... | |
int | Apply (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
Perform a matrix-vector product with certain rows zeroed out. More... | |
int | ApplyInverse (const Epetra_MultiVector &, Epetra_MultiVector &) const |
Can't call ApplyInverse on a zeroed operator. More... | |
double | NormInf () const |
const char * | Label () const |
bool | UseTranspose () const |
bool | HasNormInf () const |
const Epetra_Comm & | Comm () const |
const Epetra_Map & | OperatorDomainMap () const |
const Epetra_Map & | OperatorRangeMap () const |
A class that zeros out chosen rows of a matrix-vector product.
Definition at line 133 of file Teko_EpetraHelpers.hpp.
Teko::Epetra::ZeroedOperator::ZeroedOperator | ( | const std::vector< int > & | zeroIndices, |
const Teuchos::RCP< const Epetra_Operator > & | op | ||
) |
Constructor for a ZeroedOperator.
Build a ZeroedOperator based on a particular Epetra_Operator and a set of indices to zero out. These indices must be local to this processor as specified by RowMap().
[in] | zeroIndices | Set of indices to zero out (must be local). |
[in] | op | Underlying epetra operator to use. |
Definition at line 232 of file Teko_EpetraHelpers.cpp.
|
inlinevirtual |
Do nothing destructor.
Definition at line 150 of file Teko_EpetraHelpers.hpp.
|
inline |
Can't transpose a ZeroedOperator.
Definition at line 153 of file Teko_EpetraHelpers.hpp.
int Teko::Epetra::ZeroedOperator::Apply | ( | const Epetra_MultiVector & | X, |
Epetra_MultiVector & | Y | ||
) | const |
Perform a matrix-vector product with certain rows zeroed out.
Definition at line 238 of file Teko_EpetraHelpers.cpp.
|
inline |
Can't call ApplyInverse on a zeroed operator.
Definition at line 159 of file Teko_EpetraHelpers.hpp.