42 #ifndef STOKHOS_PRODUCT_EPETRA_OPERATOR_HPP 43 #define STOKHOS_PRODUCT_EPETRA_OPERATOR_HPP 47 #include "Epetra_Map.h" 48 #include "EpetraExt_MultiComm.h" 57 public virtual Epetra_Operator {
71 const Teuchos::RCP<const Epetra_BlockMap>& block_map,
74 const Teuchos::RCP<const EpetraExt::MultiComm>&
product_comm);
84 const Teuchos::RCP<const Epetra_BlockMap>& block_map,
87 const Teuchos::RCP<const Epetra_Map>& range_product_map,
88 const Teuchos::RCP<const EpetraExt::MultiComm>&
product_comm);
106 Teuchos::RCP<const EpetraExt::MultiComm>
productComm()
const;
118 virtual int Apply(
const Epetra_MultiVector& Input,
119 Epetra_MultiVector& Result)
const;
126 Epetra_MultiVector& Y)
const;
129 virtual double NormInf()
const;
132 virtual const char*
Label ()
const;
147 virtual const Epetra_Comm &
Comm()
const;
167 const Teuchos::RCP<const Epetra_BlockMap>& block_map,
168 const Teuchos::RCP<const EpetraExt::MultiComm>&
product_comm);
195 #endif // STOKHOS_PRODUCT_EPETRA_OPERATOR_HPP
ProductEpetraOperator(const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_Map > &domain_base_map, const Teuchos::RCP< const Epetra_Map > &range_base_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm)
Create a container with container map block_map where each coefficient is generated from the supplied...
Teuchos::RCP< const EpetraExt::MultiComm > product_comm
Product multi-level communicator.
A container class for products of Epetra_Vector's.
virtual bool HasNormInf() const
Returns true if the this object can provide an approximate Inf-norm, false otherwise.
Teuchos::RCP< const Epetra_Map > product_range_map
Product range map.
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 const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this matrix operator.
int ordinal_type
Typename of ordinals.
double value_type
Typename of values.
virtual const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this matrix operator. ...
virtual const Epetra_Comm & Comm() const
Returns a reference to the Epetra_Comm communicator associated with this operator.
Teuchos::RCP< const EpetraExt::MultiComm > productComm() const
Get product comm.
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 ...
virtual double NormInf() const
Returns an approximate infinity norm of the operator matrix.
Teuchos::RCP< const Epetra_Map > range_base_map
Range map of each coefficient.
virtual int SetUseTranspose(bool UseTranspose)
Set to true if the transpose of the operator is requested.
Top-level namespace for Stokhos classes and functions.
bool useTranspose
Whether to use transpose in Apply()
A product (in the mathematical sense) container class whose coefficients are vectors, operators, or in general any type that would have an expensive copy constructor.
Teuchos::RCP< const Epetra_Map > domain_base_map
Domain map of each coefficient.
void setup(const Teuchos::RCP< const Epetra_Map > &domain_base_map, const Teuchos::RCP< const Epetra_Map > &range_base_map)
Second stage of setup.
virtual const char * Label() const
Returns a character string describing the operator.
virtual ~ProductEpetraOperator()
Destructor.
virtual bool UseTranspose() const
Returns the current UseTranspose setting.
ProductEpetraOperator & operator=(const ProductEpetraOperator &v)
Assignment.