30 #ifndef KOKKOS_LAYOUT_NATURAL_HPP
31 #define KOKKOS_LAYOUT_NATURAL_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"
42 #ifdef KOKKOS_IMPL_PUBLIC_INCLUDE_NOTDEFINED_CORE
43 #undef KOKKOS_IMPL_PUBLIC_INCLUDE
44 #undef KOKKOS_IMPL_PUBLIC_INCLUDE_NOTDEFINED_CORE
51 template <
typename Layout>
62 KOKKOS_INLINE_FUNCTION
64 size_t N0 = 0 ,
size_t N1 = 0 ,
size_t N2 = 0 ,
size_t N3 = 0
65 ,
size_t N4 = 0 ,
size_t N5 = 0 ,
size_t N6 = 0 ,
size_t N7 = 0 )
66 : Layout( N0 , N1 , N2 , N3 , N4 , N5 , N6 , N7 ) {}
70 template <
class Layout>
72 static const bool value =
false;
75 template <
class Layout>
80 template <
class Layout>
90 template <
class Layout>
91 struct is_same< Kokkos::LayoutNatural<Layout>, Layout> {
95 template <
class Layout>
96 struct is_same< Layout, Kokkos::LayoutNatural<Layout> > {
102 #include "impl/Kokkos_ViewMapping.hpp"
108 template <
class Dimension ,
class Layout >
110 :
public ViewOffset<Dimension,Layout> {
116 typedef ViewOffset<Dimension,Layout>
Base;
118 ViewOffset() = default ;
119 ViewOffset(
const ViewOffset & ) = default ;
120 ViewOffset & operator = (
const ViewOffset & ) = default ;
124 template <
typename Arg1>
125 KOKKOS_INLINE_FUNCTION
128 template <
typename Arg1,
typename Arg2>
129 KOKKOS_INLINE_FUNCTION
136 #endif // #ifndef KOKKOS_LAYOUT_NATURAL_HPP
ViewOffset< Dimension, Layout > Base
LayoutNatural & operator=(LayoutNatural const &)=default
KOKKOS_INLINE_FUNCTION constexpr LayoutNatural(size_t N0=0, size_t N1=0, size_t N2=0, size_t N3=0, size_t N4=0, size_t N5=0, size_t N6=0, size_t N7=0)
LayoutNatural array_layout
Tag this class as a kokkos array layout.
KOKKOS_INLINE_FUNCTION constexpr ViewOffset(const Arg1 &arg1, const Arg2 &arg2)
KOKKOS_INLINE_FUNCTION constexpr ViewOffset(const Arg1 &arg1)
LayoutNatural(LayoutNatural const &)=default