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
51template <
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 ) {}
70template <
class Layout>
72 static const bool value =
false;
75template <
class Layout>
80template <
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"
108template <
class Dimension ,
class Layout >
110 :
public ViewOffset<Dimension,Layout> {
116 typedef ViewOffset<Dimension,Layout>
Base;
120 ViewOffset & operator = (
const ViewOffset & ) = default ;
124 template <
typename Arg1>
125 KOKKOS_INLINE_FUNCTION
128 template <
typename Arg1,
typename Arg2>
129 KOKKOS_INLINE_FUNCTION
ViewOffset< Dimension, Layout > Base
KOKKOS_INLINE_FUNCTION constexpr ViewOffset(const Arg1 &arg1, const Arg2 &arg2)
KOKKOS_INLINE_FUNCTION constexpr ViewOffset(const Arg1 &arg1)
ViewOffset(const ViewOffset &)=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 & operator=(LayoutNatural const &)=default
LayoutNatural(LayoutNatural &&)=default
LayoutNatural array_layout
Tag this class as a kokkos array layout.
LayoutNatural(LayoutNatural const &)=default