cuda::experimental::stf::mdspan_print#

template<typename mdspan_like>
void cuda::experimental::stf::mdspan_print(
mdspan_like s,
const ::std::string &text,
FILE *f = stderr,
)#

Print a formatted slice to a file or standard error output.

The output is prefixed by text followed by a newline.

Template Parameters:
  • T – The type of data contained in the slice

  • dimensions – The rank of the slice

Parameters:
  • s – The slice object to be printed

  • text – The descriptive text to be printed before the slice data

  • f – The file pointer where the slice data should be printed (default: standard error output)