42#ifndef STOKHOS_MEAN_BASED_PRECONDITIONER_HPP
43#define STOKHOS_MEAN_BASED_PRECONDITIONER_HPP
45#include "Teuchos_RCP.hpp"
48#include "EpetraExt_MultiComm.h"
53#include "Teuchos_ParameterList.hpp"
67 const Teuchos::RCP<const EpetraExt::MultiComm>&
sg_comm,
69 const Teuchos::RCP<const Stokhos::EpetraSparse3Tensor>&
epetraCijk,
70 const Teuchos::RCP<const Epetra_Map>&
base_map,
71 const Teuchos::RCP<const Epetra_Map>&
sg_map,
72 const Teuchos::RCP<Stokhos::AbstractPreconditionerFactory>&
prec_factory,
73 const Teuchos::RCP<Teuchos::ParameterList>& params);
109 virtual double NormInf()
const;
112 virtual const char*
Label ()
const;
157 Teuchos::RCP<const EpetraExt::MultiComm>
sg_comm;
160 Teuchos::RCP<const Stokhos::OrthogPolyBasis<int,double> >
sg_basis;
A stochastic preconditioner based on applying the inverse of the mean.
Teuchos::RCP< const Stokhos::EpetraSparse3Tensor > epetraCijk
Stores Epetra Cijk tensor.
virtual const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this matrix operator.
Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > sg_basis
Stochastic Galerking basis.
virtual bool HasNormInf() const
Returns true if the this object can provide an approximate Inf-norm, false otherwise.
Teuchos::RCP< Epetra_Operator > mean_prec
Stores mean preconditioner.
virtual const Epetra_Comm & Comm() const
Returns a reference to the Epetra_Comm communicator associated with this operator.
MeanBasedPreconditioner(const MeanBasedPreconditioner &)
Private to prohibit copying.
Teuchos::RCP< const EpetraExt::MultiComm > sg_comm
Stores SG parallel communicator.
MeanBasedPreconditioner & operator=(const MeanBasedPreconditioner &)
Private to prohibit copying.
virtual const char * Label() const
Returns a character string describing the operator.
bool use_block_apply
Flag indicating whether to use apply all vectors simultaneously.
virtual const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this matrix operator.
virtual double NormInf() const
Returns an approximate infinity norm of the operator matrix.
int num_blocks
Number of blocks.
bool useTranspose
Flag indicating whether transpose was selected.
Teuchos::RCP< const Epetra_Map > sg_map
Stores SG map.
Teuchos::RCP< Stokhos::AbstractPreconditionerFactory > prec_factory
Stores factory for building mean preconditioner.
Teuchos::RCP< const Epetra_Map > base_map
Stores base map.
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 ...
std::string label
Label for operator.
virtual ~MeanBasedPreconditioner()
Destructor.
virtual void setupPreconditioner(const Teuchos::RCP< Stokhos::SGOperator > &sg_op, const Epetra_Vector &x)
Setup preconditioner.
virtual int SetUseTranspose(bool UseTranspose)
Set to true if the transpose of the operator is requested.
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 ...
virtual bool UseTranspose() const
Returns the current UseTranspose setting.
Abstract base class for multivariate orthogonal polynomials.
An abstract class to represent a generic stochastic Galerkin preconditioner as an Epetra_Operator.
Top-level namespace for Stokhos classes and functions.