10 #ifndef KOKKOS_LAYOUT_NATURAL_HPP
11 #define KOKKOS_LAYOUT_NATURAL_HPP
15 #ifndef KOKKOS_IMPL_PUBLIC_INCLUDE
16 #define KOKKOS_IMPL_PUBLIC_INCLUDE
17 #define KOKKOS_IMPL_PUBLIC_INCLUDE_NOTDEFINED_CORE
19 #include "Kokkos_Core_fwd.hpp"
20 #include "Kokkos_Layout.hpp"
22 #ifdef KOKKOS_IMPL_PUBLIC_INCLUDE_NOTDEFINED_CORE
23 #undef KOKKOS_IMPL_PUBLIC_INCLUDE
24 #undef KOKKOS_IMPL_PUBLIC_INCLUDE_NOTDEFINED_CORE
31 template <
typename Layout>
42 KOKKOS_INLINE_FUNCTION
44 size_t N0 = 0 ,
size_t N1 = 0 ,
size_t N2 = 0 ,
size_t N3 = 0
45 ,
size_t N4 = 0 ,
size_t N5 = 0 ,
size_t N6 = 0 ,
size_t N7 = 0 )
46 : Layout( N0 , N1 , N2 , N3 , N4 , N5 , N6 , N7 ) {}
50 template <
class Layout>
52 static const bool value =
false;
55 template <
class Layout>
60 template <
class Layout>
70 template <
class Layout>
71 struct is_same< Kokkos::LayoutNatural<Layout>, Layout> {
75 template <
class Layout>
76 struct is_same< Layout, Kokkos::LayoutNatural<Layout> > {
82 #if KOKKOS_VERSION >= 40499
83 #include "View/Kokkos_ViewMapping.hpp"
85 #include "impl/Kokkos_ViewMapping.hpp"
92 template <
class Dimension ,
class Layout >
94 :
public ViewOffset<Dimension,Layout> {
100 typedef ViewOffset<Dimension,Layout>
Base;
102 ViewOffset() = default ;
103 ViewOffset(
const ViewOffset & ) = default ;
104 ViewOffset & operator = (
const ViewOffset & ) = default ;
108 template <
typename Arg1>
109 KOKKOS_INLINE_FUNCTION
112 template <
typename Arg1,
typename Arg2>
113 KOKKOS_INLINE_FUNCTION
120 #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