30 #ifndef KOKKOS_LAYOUT_NATURAL_HPP 31 #define KOKKOS_LAYOUT_NATURAL_HPP 33 #include "Kokkos_Core_fwd.hpp" 34 #include "Kokkos_Layout.hpp" 41 template <
typename Layout>
52 KOKKOS_INLINE_FUNCTION
54 size_t N0 = 0 ,
size_t N1 = 0 ,
size_t N2 = 0 ,
size_t N3 = 0
55 ,
size_t N4 = 0 ,
size_t N5 = 0 ,
size_t N6 = 0 ,
size_t N7 = 0 )
56 : Layout( N0 , N1 , N2 , N3 , N4 , N5 , N6 , N7 ) {}
60 template <
class Layout>
62 static const bool value =
false;
65 template <
class Layout>
70 template <
class Layout>
80 template <
class Layout>
81 struct is_same<
Kokkos::LayoutNatural<Layout>, Layout> {
85 template <
class Layout>
86 struct is_same< Layout,
Kokkos::LayoutNatural<Layout> > {
92 #include "impl/Kokkos_ViewMapping.hpp" 98 template <
class Dimension ,
class Layout >
100 :
public ViewOffset<Dimension,Layout> {
106 typedef ViewOffset<Dimension,Layout>
Base;
108 ViewOffset() = default ;
109 ViewOffset(
const ViewOffset & ) = default ;
110 ViewOffset & operator = (
const ViewOffset & ) = default ;
114 template <
typename Arg1>
115 KOKKOS_INLINE_FUNCTION
118 template <
typename Arg1,
typename Arg2>
119 KOKKOS_INLINE_FUNCTION
126 #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