42 #ifndef TPETRA_OPERATOR_HPP
43 #define TPETRA_OPERATOR_HPP
48 #include <Teuchos_Describable.hpp>
49 #include <Teuchos_BLAS_types.hpp>
50 #include <Teuchos_ScalarTraits.hpp>
82 template <
class Scalar,
86 class Operator :
virtual public Teuchos::Describable {
108 virtual Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> >
getDomainMap()
const = 0;
111 virtual Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> >
getRangeMap()
const = 0;
122 Teuchos::ETransp mode = Teuchos::NO_TRANS,
123 Scalar alpha = Teuchos::ScalarTraits<Scalar>::one(),
124 Scalar beta = Teuchos::ScalarTraits<Scalar>::zero())
const = 0;
137 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
144 #endif // TPETRA_OPERATOR_HPP
Scalar scalar_type
The type of the entries of the input and output multivectors.
Forward declaration of Tpetra::Operator.
Node node_type
The Kokkos Node type.
virtual bool hasTransposeApply() const
Whether this operator supports applying the transpose or conjugate transpose.
One or more distributed dense vectors.
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 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...
Abstract interface for operators (e.g., matrices and preconditioners).
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...
Forward declaration of Tpetra::MultiVector.
GlobalOrdinal global_ordinal_type
The global index type.
LocalOrdinal local_ordinal_type
The local index type.
Forward declaration of Tpetra::Map.