Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
Loading...
Searching...
No Matches
Dynamic/Morpheus_Print_Impl.hpp
1
24#ifndef MORPHEUS_DYNAMIC_PRINT_IMPL_HPP
25#define MORPHEUS_DYNAMIC_PRINT_IMPL_HPP
26
27#include <Morpheus_FormatTags.hpp>
28
29#include <impl/Morpheus_Print_Impl.hpp>
30#include <impl/Morpheus_Variant.hpp>
31
32namespace Morpheus {
33namespace Impl {
34
35template <typename Printable, typename Stream>
36void print(const Printable& p, Stream& s,
38 Printable>::value>::type* = nullptr) {
39 print_matrix_header(p, s);
40 Morpheus::Impl::Variant::visit([&](auto&& arg) { Impl::print(arg, s); },
41 p.const_formats());
42}
43
44template <typename Printable>
45void print(const Printable& p,
47 Printable>::value>::type* = nullptr) {
48 Impl::print(p, std::cout);
49}
50
51} // namespace Impl
52} // namespace Morpheus
53
54#endif // MORPHEUS_DYNAMIC_PRINT_IMPL_HPP
Checks if the given type T is a valid Dynamic Matrix Format Container i.e is valid matrix container a...
Definition: Morpheus_FormatTags.hpp:201
Generic Morpheus interfaces.
Definition: dummy.cpp:24