10#ifndef TPETRA_OPERATOR_HPP 
   11#define TPETRA_OPERATOR_HPP 
   17#include <Teuchos_Describable.hpp> 
   18#include <Teuchos_BLAS_types.hpp> 
   19#include <Teuchos_ScalarTraits.hpp> 
   51template <
class Scalar,
 
   55class Operator : 
virtual public Teuchos::Describable {
 
   77  virtual Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > 
getDomainMap() 
const = 0;
 
   80  virtual Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > 
getRangeMap() 
const = 0;
 
   91        Teuchos::ETransp 
mode = Teuchos::NO_TRANS,
 
   92        Scalar alpha          = Teuchos::ScalarTraits<Scalar>::one(),
 
   93        Scalar beta           = Teuchos::ScalarTraits<Scalar>::zero()) 
const = 0;
 
  118template <
class Scalar, 
class LocalOrdinal, 
class GlobalOrdinal, 
class Node>
 
  123template <
class Scalar, 
class LocalOrdinal, 
class GlobalOrdinal, 
class Node>
 
  128template <
class Scalar, 
class LocalOrdinal, 
class GlobalOrdinal, 
class Node>
 
 
 
 
 
Forward declaration of Tpetra::Map.
 
Forward declaration of Tpetra::MultiVector.
 
Forward declaration of Tpetra::Operator.
 
Forward declaration of Tpetra::Vector.
 
Struct that holds views of the contents of a CrsMatrix.
 
Abstract interface for operators (e.g., matrices and preconditioners).
 
virtual Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRangeMap() const =0
The Map associated with the range of this operator, which must be compatible with Y....
 
Scalar scalar_type
The type of the entries of the input and output multivectors.
 
virtual void getLocalDiagCopy(Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &diag) const
Get the diagonal of the operator.
 
virtual bool hasDiagonal() const
Whether this operator can return its diagonal.
 
LocalOrdinal local_ordinal_type
The local index type.
 
virtual Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getDomainMap() const =0
The Map associated with the domain of this operator, which must be compatible with X....
 
Node node_type
The Kokkos Node type.
 
virtual void apply(const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &X, MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &Y, Teuchos::ETransp mode=Teuchos::NO_TRANS, Scalar alpha=Teuchos::ScalarTraits< Scalar >::one(), Scalar beta=Teuchos::ScalarTraits< Scalar >::zero()) const =0
Computes the operator-multivector application.
 
virtual bool hasTransposeApply() const
Whether this operator supports applying the transpose or conjugate transpose.
 
GlobalOrdinal global_ordinal_type
The global index type.
 
Namespace Tpetra contains the class and methods constituting the Tpetra library.