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){
9 return Kokkos::View<T*,Kokkos::LayoutRight,Device>(view, i, j, 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){
15 return Kokkos::View<T*,Kokkos::LayoutRight,Device>(view, i, 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,
int j){
21 return Kokkos::View<T**,Kokkos::LayoutRight,Device>(view, i, j, Kokkos::ALL(), 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){
27 return Kokkos::View<T**,Kokkos::LayoutRight,Device>(view, i, 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(), Kokkos::ALL());
Kokkos::View< T *, Kokkos::LayoutRight, Device > my_subview(const Kokkos::View< T ***, Kokkos::LayoutRight, Device > &view, int i, int j)
Definition: my_subview.hpp:8