17 const auto view_h = Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace{},
view);
19 std::ostringstream oss;
23 if constexpr (ViewType::rank() == 0) {
27 for (
size_t idx = 0; idx < view_h.extent(0); ++idx)
29 if (idx > 0) oss <<
", ";
30 if constexpr (ViewType::rank() == 1) {
33 oss << view::slice<ViewType::rank()>(view_h, idx);
39 return out << oss.str();