Teko  Version of the Day
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
Teko::Epetra::ZeroedOperator Class Reference

#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
 

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().

Parameters
[in]zeroIndicesSet of indices to zero out (must be local).
[in]opUnderlying epetra operator to use.

Definition at line 232 of file Teko_EpetraHelpers.cpp.

virtual Teko::Epetra::ZeroedOperator::~ZeroedOperator ( )
inlinevirtual

Do nothing destructor.

Definition at line 150 of file Teko_EpetraHelpers.hpp.

Member Function Documentation

int Teko::Epetra::ZeroedOperator::SetUseTranspose ( bool  )
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.

int Teko::Epetra::ZeroedOperator::ApplyInverse ( const Epetra_MultiVector &  ,
Epetra_MultiVector &   
) 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: