Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
Stokhos::FullyAssembledPreconditioner Class Reference

A stochastic preconditioner based on applying a preconditioner to the fully assembled operator. More...

#include <Stokhos_FullyAssembledPreconditioner.hpp>

Inheritance diagram for Stokhos::FullyAssembledPreconditioner:
Inheritance graph
[legend]

Public Member Functions

 FullyAssembledPreconditioner (const Teuchos::RCP< Stokhos::AbstractPreconditionerFactory > &prec_factory, const Teuchos::RCP< Teuchos::ParameterList > &params=Teuchos::null)
 Constructor. More...
 
virtual ~FullyAssembledPreconditioner ()
 Destructor. More...
 
- Public Member Functions inherited from Stokhos::SGPreconditioner
 SGPreconditioner ()
 Constructor. More...
 
virtual ~SGPreconditioner ()
 Destructor. More...
 

Protected Attributes

std::string label
 Label for operator. More...
 
Teuchos::RCP
< Stokhos::AbstractPreconditionerFactory
prec_factory
 Stores factory for building preconditioner. More...
 
Teuchos::RCP< Epetra_Operatorprec
 Stores preconditioner. More...
 

Private Member Functions

 FullyAssembledPreconditioner (const FullyAssembledPreconditioner &)
 Private to prohibit copying. More...
 
FullyAssembledPreconditioneroperator= (const FullyAssembledPreconditioner &)
 Private to prohibit copying. More...
 

Stokhos::SGPreconditioner methods

virtual void setupPreconditioner (const Teuchos::RCP< Stokhos::SGOperator > &sg_op, const Epetra_Vector &x)
 Setup preconditioner. More...
 

Epetra_Operator methods

virtual int SetUseTranspose (bool UseTranspose)
 Set to true if the transpose of the operator is requested. More...
 
virtual int Apply (const Epetra_MultiVector &Input, Epetra_MultiVector &Result) const
 Returns the result of a Epetra_Operator applied to a Epetra_MultiVector Input in Result as described above. More...
 
virtual int ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
 Returns the result of the inverse of the operator applied to a Epetra_MultiVector Input in Result as described above. More...
 
virtual double NormInf () const
 Returns an approximate infinity norm of the operator matrix. More...
 
virtual const char * Label () const
 Returns a character string describing the operator. More...
 
virtual bool UseTranspose () const
 Returns the current UseTranspose setting. More...
 
virtual bool HasNormInf () const
 Returns true if the this object can provide an approximate Inf-norm, false otherwise. More...
 
virtual const Epetra_CommComm () const
 Returns a reference to the Epetra_Comm communicator associated with this operator. More...
 
virtual const Epetra_MapOperatorDomainMap () const
 Returns the Epetra_Map object associated with the domain of this matrix operator. More...
 
virtual const Epetra_MapOperatorRangeMap () const
 Returns the Epetra_Map object associated with the range of this matrix operator. More...
 

Detailed Description

A stochastic preconditioner based on applying a preconditioner to the fully assembled operator.

Definition at line 25 of file Stokhos_FullyAssembledPreconditioner.hpp.

Constructor & Destructor Documentation

Stokhos::FullyAssembledPreconditioner::FullyAssembledPreconditioner ( const Teuchos::RCP< Stokhos::AbstractPreconditionerFactory > &  prec_factory,
const Teuchos::RCP< Teuchos::ParameterList > &  params = Teuchos::null 
)

Constructor.

Definition at line 14 of file Stokhos_FullyAssembledPreconditioner.cpp.

Stokhos::FullyAssembledPreconditioner::~FullyAssembledPreconditioner ( )
virtual

Destructor.

Definition at line 24 of file Stokhos_FullyAssembledPreconditioner.cpp.

Stokhos::FullyAssembledPreconditioner::FullyAssembledPreconditioner ( const FullyAssembledPreconditioner )
private

Private to prohibit copying.

Member Function Documentation

void Stokhos::FullyAssembledPreconditioner::setupPreconditioner ( const Teuchos::RCP< Stokhos::SGOperator > &  sg_op,
const Epetra_Vector x 
)
virtual

Setup preconditioner.

Implements Stokhos::SGPreconditioner.

Definition at line 30 of file Stokhos_FullyAssembledPreconditioner.cpp.

int Stokhos::FullyAssembledPreconditioner::SetUseTranspose ( bool  UseTranspose)
virtual

Set to true if the transpose of the operator is requested.

Implements Epetra_Operator.

Definition at line 44 of file Stokhos_FullyAssembledPreconditioner.cpp.

int Stokhos::FullyAssembledPreconditioner::Apply ( const Epetra_MultiVector Input,
Epetra_MultiVector Result 
) const
virtual

Returns the result of a Epetra_Operator applied to a Epetra_MultiVector Input in Result as described above.

Implements Epetra_Operator.

Definition at line 51 of file Stokhos_FullyAssembledPreconditioner.cpp.

int Stokhos::FullyAssembledPreconditioner::ApplyInverse ( const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const
virtual

Returns the result of the inverse of the operator applied to a Epetra_MultiVector Input in Result as described above.

Implements Epetra_Operator.

Definition at line 58 of file Stokhos_FullyAssembledPreconditioner.cpp.

double Stokhos::FullyAssembledPreconditioner::NormInf ( ) const
virtual

Returns an approximate infinity norm of the operator matrix.

Implements Epetra_Operator.

Definition at line 65 of file Stokhos_FullyAssembledPreconditioner.cpp.

const char * Stokhos::FullyAssembledPreconditioner::Label ( ) const
virtual

Returns a character string describing the operator.

Implements Epetra_Operator.

Definition at line 73 of file Stokhos_FullyAssembledPreconditioner.cpp.

bool Stokhos::FullyAssembledPreconditioner::UseTranspose ( ) const
virtual

Returns the current UseTranspose setting.

Implements Epetra_Operator.

Definition at line 80 of file Stokhos_FullyAssembledPreconditioner.cpp.

bool Stokhos::FullyAssembledPreconditioner::HasNormInf ( ) const
virtual

Returns true if the this object can provide an approximate Inf-norm, false otherwise.

Implements Epetra_Operator.

Definition at line 87 of file Stokhos_FullyAssembledPreconditioner.cpp.

const Epetra_Comm & Stokhos::FullyAssembledPreconditioner::Comm ( ) const
virtual

Returns a reference to the Epetra_Comm communicator associated with this operator.

Implements Epetra_Operator.

Definition at line 94 of file Stokhos_FullyAssembledPreconditioner.cpp.

const Epetra_Map & Stokhos::FullyAssembledPreconditioner::OperatorDomainMap ( ) const
virtual

Returns the Epetra_Map object associated with the domain of this matrix operator.

Implements Epetra_Operator.

Definition at line 100 of file Stokhos_FullyAssembledPreconditioner.cpp.

const Epetra_Map & Stokhos::FullyAssembledPreconditioner::OperatorRangeMap ( ) const
virtual

Returns the Epetra_Map object associated with the range of this matrix operator.

Implements Epetra_Operator.

Definition at line 107 of file Stokhos_FullyAssembledPreconditioner.cpp.

FullyAssembledPreconditioner& Stokhos::FullyAssembledPreconditioner::operator= ( const FullyAssembledPreconditioner )
private

Private to prohibit copying.

Member Data Documentation

std::string Stokhos::FullyAssembledPreconditioner::label
protected

Label for operator.

Definition at line 113 of file Stokhos_FullyAssembledPreconditioner.hpp.

Teuchos::RCP<Stokhos::AbstractPreconditionerFactory> Stokhos::FullyAssembledPreconditioner::prec_factory
protected

Stores factory for building preconditioner.

Definition at line 116 of file Stokhos_FullyAssembledPreconditioner.hpp.

Teuchos::RCP<Epetra_Operator> Stokhos::FullyAssembledPreconditioner::prec
protected

Stores preconditioner.

Definition at line 119 of file Stokhos_FullyAssembledPreconditioner.hpp.


The documentation for this class was generated from the following files: