Teko Version of the Day
Public Member Functions
Teko::Epetra::ZeroedOperator Class Reference

#include <Teko_EpetraHelpers.hpp>

List of all members.

Public Member Functions

 ZeroedOperator (const std::vector< int > &zeroIndices, const Teuchos::RCP< const Epetra_Operator > &op)
 Constructor for a ZeroedOperator.
Functions required by Epetra_Operator
virtual ~ZeroedOperator ()
 Do nothing destructor.
int SetUseTranspose (bool UseTranspose)
 Can't transpose a ZeroedOperator.
int Apply (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
 Perform a matrix-vector product with certain rows zeroed out.
int ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
 Can't call ApplyInverse on a zeroed operator.
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

Detailed Description

A class that zeros out chosen rows of a matrix-vector product.

Definition at line 133 of file Teko_EpetraHelpers.hpp.

Constructor & Destructor Documentation

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]zeroIndicesSet of indices to zero out (must be local).
[in]opUnderlying epetra operator to use.

Definition at line 231 of file Teko_EpetraHelpers.cpp.

virtual Teko::Epetra::ZeroedOperator::~ZeroedOperator ( ) [inline, virtual]

Do nothing destructor.

Definition at line 150 of file Teko_EpetraHelpers.hpp.

Member Function Documentation

int Teko::Epetra::ZeroedOperator::SetUseTranspose ( bool  UseTranspose) [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 237 of file Teko_EpetraHelpers.cpp.

int Teko::Epetra::ZeroedOperator::ApplyInverse ( const Epetra_MultiVector &  X,
Epetra_MultiVector &  Y 
) const [inline]

Can't call ApplyInverse on a zeroed operator.

Definition at line 159 of file Teko_EpetraHelpers.hpp.

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables