ALL, ALL_t¶
Defined in header <Kokkos_Core.hpp>
Usage¶
Kokkos::subview(v, i, Kokkos::ALL);
Kokkos::subview(v, i, Kokkos::ALL());
ALL is a slice specifier used with subview() to select all
elements along a dimension.
Both Kokkos::ALL and Kokkos::ALL() syntax are supported.
Interface¶
Example¶
Kokkos::View<double**[5]> a("A", N0, N1);
// Select all elements in dimensions 1 and 2, fix dimension 0 to index 5
auto s = Kokkos::subview(a, 5, Kokkos::ALL, Kokkos::ALL);
// Result: s has type View<double[5]> with dimensions (N1, 5)
// Both syntaxes work
auto s1 = Kokkos::subview(a, 5, Kokkos::ALL, Kokkos::ALL);
auto s2 = Kokkos::subview(a, 5, Kokkos::ALL(), Kokkos::ALL());