10#ifndef XPETRA_OPERATOR_HPP
11#define XPETRA_OPERATOR_HPP
15#include <Teuchos_Describable.hpp>
19#include "Xpetra_Map.hpp"
20#include "Xpetra_MultiVector.hpp"
24template <
class Scalar,
27 class Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
91#define XPETRA_OPERATOR_SHORT
LocalOrdinal local_ordinal_type
The local index type.
Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > map_type
virtual bool hasTransposeApply() const
Whether this operator supports applying the transpose or conjugate transpose.
virtual void apply(const mv_type &X, mv_type &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.
GlobalOrdinal global_ordinal_type
The global index type.
virtual const Teuchos::RCP< const map_type > getDomainMap() const =0
The Map associated with the domain of this operator, which must be compatible with X....
Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > mv_type
virtual void removeEmptyProcessesInPlace(const RCP< const map_type > &)
Node node_type
The Kokkos Node type.
virtual const Teuchos::RCP< const map_type > 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 residual(const mv_type &X, const mv_type &B, mv_type &R) const =0
Compute a residual R = B - (*this) * X.