24#ifndef MORPHEUS_COO_PRINT_IMPL_HPP
25#define MORPHEUS_COO_PRINT_IMPL_HPP
27#include <Morpheus_FormatTags.hpp>
28#include <impl/Morpheus_Utils.hpp>
36template <
typename Pr
intable,
typename Stream>
37void print(
const Printable& p, Stream& s,
38 typename std::enable_if<
39 Morpheus::is_coo_matrix_format_container_v<Printable>>::type* =
41 using size_type =
typename Printable::size_type;
42 print_matrix_header(p, s);
44 for (size_type n = 0; n < p.nnnz(); n++) {
45 s <<
" " << std::setw(14) << p.crow_indices(n);
46 s <<
" " << std::setw(14) << p.ccolumn_indices(n);
47 s <<
" " << std::setprecision(12) << std::setw(12) <<
"(" << p.cvalues(n)
Generic Morpheus interfaces.
Definition: dummy.cpp:24