42 #ifndef TPETRA_OPERATOR_HPP
43 #define TPETRA_OPERATOR_HPP
45 #include <Kokkos_DefaultNode.hpp>
46 #include <Teuchos_Describable.hpp>
47 #include <Teuchos_BLAS_types.hpp>
48 #include <Teuchos_ScalarTraits.hpp>
56 #ifndef DOXYGEN_SHOULD_SKIP_THIS
57 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
60 template<
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
62 #endif // DOXYGEN_SHOULD_SKIP_THIS
74 template<
class Scalar,
class LocalOrdinal =
int,
class GlobalOrdinal = LocalOrdinal,
class Node = Kokkos::DefaultNode::DefaultNodeType>
75 class Operator :
virtual public Teuchos::Describable {
103 virtual const Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> > &
getDomainMap()
const = 0;
106 virtual const Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> > &
getRangeMap()
const = 0;
116 Teuchos::ETransp mode = Teuchos::NO_TRANS,
117 Scalar alpha = Teuchos::ScalarTraits<Scalar>::one(),
118 Scalar beta = Teuchos::ScalarTraits<Scalar>::zero())
const = 0;
127 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
134 #endif // TPETRA_OPERATOR_HPP
virtual bool hasTransposeApply() const
Indicates whether this operator supports applying the adjoint operator.
GlobalOrdinal global_ordinal_type
The global index type.
Scalar scalar_type
The type of the entries of the input and output multivectors.
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 const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & getRangeMap() const =0
Returns the Map associated with the range of this operator, which must be compatible with Y...
virtual const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & getDomainMap() const =0
Returns the Map associated with the domain of this operator, which must be compatible with X...
Abstract interface for linear operators accepting Tpetra MultiVector objects.
LocalOrdinal local_ordinal_type
The local index type.
Node node_type
The Kokkos Node type.