7 template<
class Device,
typename T>
8 Kokkos::View<T*,Kokkos::LayoutRight,Device>
my_subview(
const Kokkos::View<T****,Kokkos::LayoutRight,Device>& view,
int i,
int j,
int k){
9 return Kokkos::View<T*,Kokkos::LayoutRight,Device>(view, i, j, k, Kokkos::ALL());
13 template<
class Device,
typename T>
14 Kokkos::View<T*,Kokkos::LayoutRight,Device>
my_subview(
const Kokkos::View<T***,Kokkos::LayoutRight,Device>& view,
int i,
int j){
15 return Kokkos::View<T*,Kokkos::LayoutRight,Device>(view, i, j, Kokkos::ALL());
19 template<
class Device,
typename T>
20 Kokkos::View<T*,Kokkos::LayoutRight,Device>
my_subview(
const Kokkos::View<T**,Kokkos::LayoutRight,Device>& view,
int i){
21 return Kokkos::View<T*,Kokkos::LayoutRight,Device>(view, i, Kokkos::ALL());
25 template<
class Device,
typename T>
26 Kokkos::View<T**,Kokkos::LayoutRight,Device>
my_subview(
const Kokkos::View<T****,Kokkos::LayoutRight,Device>& view,
int i,
int j){
27 return Kokkos::View<T**,Kokkos::LayoutRight,Device>(view, i, j, Kokkos::ALL(), Kokkos::ALL());
31 template<
class Device,
typename T>
32 Kokkos::View<T**,Kokkos::LayoutRight,Device>
my_subview(
const Kokkos::View<T***,Kokkos::LayoutRight,Device>& view,
int i){
33 return Kokkos::View<T**,Kokkos::LayoutRight,Device>(view, i, Kokkos::ALL(), Kokkos::ALL());
37 template<
class Device,
typename T>
38 Kokkos::View<T***,Kokkos::LayoutRight,Device>
my_subview(
const Kokkos::View<T****,Kokkos::LayoutRight,Device>& view,
int i){
39 return Kokkos::View<T***,Kokkos::LayoutRight,Device>(view, i, Kokkos::ALL(), Kokkos::ALL(), Kokkos::ALL());
44 template<
class Device,
typename T>
45 Kokkos::View<T*,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
my_subview(
const Kokkos::View<T***,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>& view,
int i,
int j){
46 return Kokkos::View<T*,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>(view, i, j, Kokkos::ALL());
50 template<
class Device,
typename T>
51 Kokkos::View<T*,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
my_subview(
const Kokkos::View<T**,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>& view,
int i){
52 return Kokkos::View<T*,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>(view, i, Kokkos::ALL());
56 template<
class Device,
typename T>
57 Kokkos::View<T**,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
my_subview(
const Kokkos::View<T****,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>& view,
int i,
int j){
58 return Kokkos::View<T**,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>(view, i, j, Kokkos::ALL(), Kokkos::ALL());
62 template<
class Device,
typename T>
63 Kokkos::View<T**,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
my_subview(
const Kokkos::View<T***,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>& view,
int i){
64 return Kokkos::View<T**,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>(view, i, Kokkos::ALL(), Kokkos::ALL());
68 template<
class Device,
typename T>
69 Kokkos::View<T***,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
my_subview(
const Kokkos::View<T****,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>& view,
int i){
70 return Kokkos::View<T***,Kokkos::LayoutRight,Device, Kokkos::MemoryTraits<Kokkos::Unmanaged>>(view, i, Kokkos::ALL(), Kokkos::ALL(), Kokkos::ALL());
Kokkos::View< T *, Kokkos::LayoutRight, Device > my_subview(const Kokkos::View< T ****, Kokkos::LayoutRight, Device > &view, int i, int j, int k)
Definition: my_subview.hpp:8