24#ifndef MORPHEUS_DENSEVECTOR_PRINT_IMPL_HPP
25#define MORPHEUS_DENSEVECTOR_PRINT_IMPL_HPP
27#include <Morpheus_FormatTags.hpp>
35template <
typename Pr
intable,
typename Stream>
37 const Printable& p, Stream& s,
38 typename std::enable_if_t<
39 Morpheus::is_dense_vector_format_container_v<Printable>>* =
nullptr) {
40 using size_type =
typename Printable::size_type;
41 s <<
"<" << p.size() <<
"> with " << p.size() <<
" entries\n";
43 for (size_type n = 0; n < p.size(); n++) {
44 s <<
" " << std::setw(14) << n;
45 s <<
" " << std::setprecision(12) << std::setw(12) <<
"(" << p[n] <<
")\n";
Generic Morpheus interfaces.
Definition: dummy.cpp:24