42 #ifndef TPETRA_OPERATOR_HPP 43 #define TPETRA_OPERATOR_HPP 46 #include <Teuchos_Describable.hpp> 47 #include <Teuchos_BLAS_types.hpp> 48 #include <Teuchos_ScalarTraits.hpp> 81 class GlobalOrdinal = ::Tpetra::Details::DefaultTypes::global_ordinal_type,
83 class Operator :
virtual public Teuchos::Describable {
105 virtual Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> >
getDomainMap()
const = 0;
108 virtual Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> >
getRangeMap()
const = 0;
119 Teuchos::ETransp mode = Teuchos::NO_TRANS,
120 Scalar alpha = Teuchos::ScalarTraits<Scalar>::one(),
121 Scalar beta = Teuchos::ScalarTraits<Scalar>::zero())
const = 0;
134 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
141 #endif // TPETRA_OPERATOR_HPP Namespace Tpetra contains the class and methods constituting the Tpetra library.
Scalar scalar_type
The type of the entries of the input and output multivectors.
Node node_type
The Kokkos Node type.
KokkosClassic::DefaultNode::DefaultNodeType node_type
Default value of Node template parameter.
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...
int local_ordinal_type
Default value of LocalOrdinal template parameter.
Declaration of the Tpetra::MultiVector class.
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...
GlobalOrdinal global_ordinal_type
The global index type.
double scalar_type
Default value of Scalar template parameter.
virtual bool hasTransposeApply() const
Whether this operator supports applying the transpose or conjugate transpose.
LocalOrdinal local_ordinal_type
The local index type.