25constexpr auto slice(ViewType&&
view, Indices&&... indices, std::index_sequence<AllsIndices...>)
27 return Kokkos::subview(
28 std::forward<ViewType>(
view),
29 std::forward<Indices>(indices)...,
30 std::get<AllsIndices>(std::array<Kokkos::ALL_t,
sizeof...(AllsIndices)>{})...
KOKKOS_FUNCTION constexpr auto slice(ViewType &&view, Indices &&... indices)
Get a subview, given the first indices. The rest is filled with Kokkos::ALL.