17#include <Kokkos_Core.hpp>
28 Data(std::string
name, Kokkos::View<rtype *, Kokkos::LayoutStride>::host_mirror_type
view) :
59 Kokkos::View<rtype *, Kokkos::LayoutStride>::host_mirror_type
m_view;
std::string m_name
Definition data.h:58
Data(std::string name, Kokkos::View< rtype *, Kokkos::LayoutStride >::host_mirror_type view)
Construct a new Data object.
Definition data.h:28
~Data()
Destroy the Data object.
Definition data.h:36
std::string name() const
Get the name of the data array.
Definition data.h:54
rtype & operator[](size_t i) const
Access element of data array.
Definition data.h:45
Kokkos::View< rtype *, Kokkos::LayoutStride >::host_mirror_type m_view
Definition data.h:59
KOKKOS_INLINE_FUNCTION rtype dot(const rtype *a, const rtype *b)
Compute the dot product of two arrays.
Definition common_math.h:32
Typedefs for common types.
float rtype
Definition common_typedef.h:39