30 #ifndef KOKKOS_LAYOUT_CONTIGUOUS_HPP
31 #define KOKKOS_LAYOUT_CONTIGUOUS_HPP
33 #include "Kokkos_Core_fwd.hpp"
34 #include "Kokkos_Layout.hpp"
40 template <
typename Layout,
unsigned Str
ide = 1>
58 template <
class Layout>
60 static const bool value =
false;
63 template <
class Layout>
69 template <
class Layout>
74 template <
class Layout>
79 template <
class Layout,
unsigned Str
ide>
89 template <
class Layout,
unsigned Str
ide>
90 struct is_same< Kokkos::LayoutContiguous<Layout,Stride>, Layout> {
91 static const bool value =
true;
94 template <
class Layout,
unsigned Str
ide>
95 struct is_same< Layout, Kokkos::LayoutContiguous<Layout,Stride> > {
96 static const bool value =
true;
101 #include "impl/Kokkos_ViewMapping.hpp"
107 template <
class Dimension ,
class Layout ,
unsigned Str
ide >
109 :
public ViewOffset<Dimension,Layout> {
115 typedef ViewOffset<Dimension,Layout>
Base;
117 ViewOffset() = default ;
118 ViewOffset(
const ViewOffset & ) = default ;
119 ViewOffset & operator = (
const ViewOffset & ) = default ;
123 template <
typename Arg1>
127 template <
typename Arg1,
typename Arg2>
132 template <
typename Layout>
138 template <
typename Layout,
unsigned Str
ide>
147 #endif // #ifndef KOKKOS_LAYOUT_CONTIGUOUS_HPP
static const bool is_unit_stride
KOKKOS_INLINE_FUNCTION constexpr ViewOffset(const Arg1 &arg1)
static const unsigned stride
KOKKOS_INLINE_FUNCTION constexpr LayoutContiguous(Layout const &layout)
#define KOKKOS_INLINE_FUNCTION
KOKKOS_INLINE_FUNCTION constexpr ViewOffset(const Arg1 &arg1, const Arg2 &arg2)
LayoutContiguous array_layout
Tag this class as a kokkos array layout.
KOKKOS_INLINE_FUNCTION constexpr LayoutContiguous(Layout &&layout)
ViewOffset< Dimension, Layout > Base