#include "kokkos-utils/concepts/View.hpp"Go to the source code of this file.
Namespaces | |
| namespace | Kokkos |
| namespace | Kokkos::utils |
| namespace | Kokkos::utils::view |
| namespace | Kokkos::utils::view::impl |
Functions | |
| template<typename ViewType, typename... Indices, size_t... AllsIndices> | |
| KOKKOS_FUNCTION constexpr auto | Kokkos::utils::view::impl::slice (ViewType &&view, Indices &&... indices, std::index_sequence< AllsIndices... >) |
| template<size_t Rank, typename ViewType, typename... Indices> requires concepts::ViewOfRank<std::remove_reference_t<ViewType>, Rank> | |
| KOKKOS_FUNCTION constexpr auto | Kokkos::utils::view::slice (ViewType &&view, Indices &&... indices) |
Get a subview, given the first indices. The rest is filled with Kokkos::ALL. | |
| template<typename ViewType, typename... Indices> requires concepts::ViewOfRank<std::remove_reference_t<ViewType>, sizeof...(Indices)> | |
| KOKKOS_FUNCTION constexpr auto | Kokkos::utils::view::slice (ViewType &&view, Indices &&... indices) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
This file is a collection of helper functions similar to what can be found in the standard mdspan header, related to retrieving slices of a Kokkos::View.
References:
Definition in file slice.hpp.