10 #ifndef TPETRA_LOCALOPERATOR_HPP
11 #define TPETRA_LOCALOPERATOR_HPP
14 #include "Teuchos_BLAS_types.hpp"
15 #include "Kokkos_ArithTraits.hpp"
16 #include <type_traits>
28 template<
class Scalar,
class Device>
31 using scalar_type =
typename Kokkos::ArithTraits<Scalar>::val_type;
32 using array_layout = Kokkos::LayoutLeft;
34 Kokkos::Device<
typename Device::execution_space,
35 typename Device::memory_space>;
40 apply (Kokkos::View<
const scalar_type**, array_layout,
41 device_type, Kokkos::MemoryTraits<Kokkos::Unmanaged> > X,
42 Kokkos::View<scalar_type**, array_layout,
43 device_type, Kokkos::MemoryTraits<Kokkos::Unmanaged> > Y,
44 const Teuchos::ETransp mode,
45 const scalar_type alpha,
46 const scalar_type beta)
const = 0;
48 virtual bool hasTransposeApply ()
const {
return false; }
53 #endif // TPETRA_LOCALOPERATOR_HPP
Abstract interface for local operators (e.g., matrices and preconditioners).
Forward declaration of Tpetra::LocalCrsMatrixOperator.