#include <Teko_TpetraHelpers.hpp>
Inherits Operator< ST, LO, GO, NT >.
Public Member Functions | |
ZeroedOperator (const std::vector< GO > &zeroIndices, const Teuchos::RCP< const Tpetra::Operator< ST, LO, GO, NT > > &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... | |
void | apply (const Tpetra::MultiVector< ST, LO, GO, NT > &X, Tpetra::MultiVector< ST, LO, GO, NT > &Y, Teuchos::ETransp mode=Teuchos::NO_TRANS, ST alpha=Teuchos::ScalarTraits< ST >::one(), ST beta=Teuchos::ScalarTraits< ST >::zero()) const |
Perform a matrix-vector product with certain rows zeroed out. More... | |
void | applyInverse (const Tpetra::MultiVector< ST, LO, GO, NT > &, Tpetra::MultiVector< ST, LO, GO, NT > &, Teuchos::ETransp=Teuchos::NO_TRANS, ST=Teuchos::ScalarTraits< ST >::one(), ST=Teuchos::ScalarTraits< ST >::zero()) const |
Can't call ApplyInverse on a zeroed operator. More... | |
double | NormInf () const |
bool | UseTranspose () const |
bool | HasNormInf () const |
Teuchos::RCP< const Tpetra::Map< LO, GO, NT > > | getDomainMap () const |
Teuchos::RCP< const Tpetra::Map< LO, GO, NT > > | getRangeMap () const |
A class that zeros out chosen rows of a matrix-vector product.
Definition at line 169 of file Teko_TpetraHelpers.hpp.
Teko::TpetraHelpers::ZeroedOperator::ZeroedOperator | ( | const std::vector< GO > & | zeroIndices, |
const Teuchos::RCP< const Tpetra::Operator< ST, LO, GO, NT > > & | 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 242 of file Teko_TpetraHelpers.cpp.
|
inlinevirtual |
Do nothing destructor.
Definition at line 186 of file Teko_TpetraHelpers.hpp.
|
inline |
Can't transpose a ZeroedOperator.
Definition at line 189 of file Teko_TpetraHelpers.hpp.
void Teko::TpetraHelpers::ZeroedOperator::apply | ( | const Tpetra::MultiVector< ST, LO, GO, NT > & | X, |
Tpetra::MultiVector< ST, LO, GO, NT > & | Y, | ||
Teuchos::ETransp | mode = Teuchos::NO_TRANS , |
||
ST | alpha = Teuchos::ScalarTraits< ST >::one() , |
||
ST | beta = Teuchos::ScalarTraits< ST >::zero() |
||
) | const |
Perform a matrix-vector product with certain rows zeroed out.
Definition at line 248 of file Teko_TpetraHelpers.cpp.
|
inline |
Can't call ApplyInverse on a zeroed operator.
Definition at line 195 of file Teko_TpetraHelpers.hpp.