Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
trace_format_mdspan.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "trace.hpp"
4
5namespace trace
6{
7
10template <typename MDS>
12
18template <MdspanLike MDS>
19[[nodiscard]] std::string format_mdspan_to_string(MDS const& mds, FormattingOptions const& opts)
20{
21 return formatValue(mds, opts);
22}
23
24} // namespace trace
Compatibility alias for mdspan-like values handled by trace formatting.
Definition trace_format_mdspan.hpp:11
Detect mdspan-like objects without depending on trace or tensor.
Definition presentation_mdspan.hpp:70
Definition trace.hpp:52
std::string format_mdspan_to_string(MDS const &mds, FormattingOptions const &opts)
Format an mdspan-like value using trace scalar formatting and presentation tensor art.
Definition trace_format_mdspan.hpp:19
std::string formatValue(const T &value, FormattingOptions const &opts)
Format a non-container, non-Uni20-scalar type with an fmt formatter.
Definition trace_impl.hpp:579
Configuration and formatting options for a trace module.
Definition trace_impl.hpp:52