30 #ifndef KOKKOS_LAYOUT_CONTIGUOUS_HPP
31 #define KOKKOS_LAYOUT_CONTIGUOUS_HPP
35 #ifndef KOKKOS_IMPL_PUBLIC_INCLUDE
36 #define KOKKOS_IMPL_PUBLIC_INCLUDE
37 #define KOKKOS_IMPL_PUBLIC_INCLUDE_NOTDEFINED_CORE
39 #include "Kokkos_Core_fwd.hpp"
40 #include "Kokkos_Layout.hpp"
41 #ifdef KOKKOS_IMPL_PUBLIC_INCLUDE_NOTDEFINED_CORE
42 #undef KOKKOS_IMPL_PUBLIC_INCLUDE
43 #undef KOKKOS_IMPL_PUBLIC_INCLUDE_NOTDEFINED_CORE
50 template <
typename Layout,
unsigned Str
ide = 1>
61 KOKKOS_INLINE_FUNCTION
63 KOKKOS_INLINE_FUNCTION
68 template <
class Layout>
70 static const bool value =
false;
73 template <
class Layout>
79 template <
class Layout>
84 template <
class Layout>
89 template <
class Layout,
unsigned Str
ide>
99 template <
class Layout,
unsigned Str
ide>
100 struct is_same< Kokkos::LayoutContiguous<Layout,Stride>, Layout> {
104 template <
class Layout,
unsigned Str
ide>
105 struct is_same< Layout, Kokkos::LayoutContiguous<Layout,Stride> > {
111 #include "impl/Kokkos_ViewMapping.hpp"
117 template <
class Dimension ,
class Layout ,
unsigned Str
ide >
119 :
public ViewOffset<Dimension,Layout> {
125 typedef ViewOffset<Dimension,Layout>
Base;
127 ViewOffset() = default ;
128 ViewOffset(
const ViewOffset & ) = default ;
129 ViewOffset & operator = (
const ViewOffset & ) = default ;
133 template <
typename Arg1>
134 KOKKOS_INLINE_FUNCTION
137 template <
typename Arg1,
typename Arg2>
138 KOKKOS_INLINE_FUNCTION
142 template <
typename Layout>
148 template <
typename Layout,
unsigned Str
ide>
157 #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)
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