12#ifndef ARCCORE_BASE_ARRAYVIEWDUMPER_H
13#define ARCCORE_BASE_ARRAYVIEWDUMPER_H
37template <
typename ViewType>
42 template <
typename Stream>
static void
43 dumpArray(
Stream& o, ViewType val,
int max_print)
45 using size_type =
typename ViewType::size_type;
47 if (max_print > 0 && n > max_print) {
53 o <<
"[0]=\"" << val[0] <<
'"';
55 o <<
" [" << i <<
"]=\"" << val[i] <<
'"';
56 o <<
" ... ... (skipping indexes " << z <<
" to " << z2 <<
" ) ... ... ";
58 o <<
" [" << i <<
"]=\"" << val[i] <<
'"';
64 o <<
"[" << i <<
"]=\"" << val[i] <<
'"';
Definitions and globals of Arccore.
Helper class to dump an array view on a stream.
constexpr __host__ __device__ SizeType size() const noexcept
Returns the size of the array.
Concept for reading and writing characters.