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
50template <
typename Layout,
unsigned Str
ide = 1>
61 KOKKOS_INLINE_FUNCTION
63 KOKKOS_INLINE_FUNCTION
68template <
class Layout>
70 static const bool value =
false;
73template <
class Layout>
79template <
class Layout>
84template <
class Layout>
89template <
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"
117template <
class Dimension ,
class Layout ,
unsigned Str
ide >
119 :
public ViewOffset<Dimension,Layout> {
125 typedef ViewOffset<Dimension,Layout>
Base;
129 ViewOffset & operator = (
const ViewOffset & ) = default ;
133 template <
typename Arg1>
134 KOKKOS_INLINE_FUNCTION
137 template <
typename Arg1,
typename Arg2>
138 KOKKOS_INLINE_FUNCTION
142template <
typename Layout>
148template <
typename Layout,
unsigned Str
ide>
static const unsigned stride
static const bool is_unit_stride
KOKKOS_INLINE_FUNCTION constexpr ViewOffset(const Arg1 &arg1, const Arg2 &arg2)
KOKKOS_INLINE_FUNCTION constexpr ViewOffset(const Arg1 &arg1)
ViewOffset(const ViewOffset &)=default
ViewOffset< Dimension, Layout > Base
LayoutContiguous array_layout
Tag this class as a kokkos array layout.
KOKKOS_INLINE_FUNCTION constexpr LayoutContiguous(Layout const &layout)
KOKKOS_INLINE_FUNCTION constexpr LayoutContiguous(Layout &&layout)