|
guanaqo
develop
Utilities for scientific software
|
Matrix/vector printing helpers and float formatting.
Definition in file print.hpp.
#include <guanaqo/export.h>#include <guanaqo/float.hpp>#include <guanaqo/mat-view.hpp>#include <cstdlib>#include <iosfwd>#include <limits>#include <span>#include <string>#include <string_view>Go to the source code of this file.
Classes | |
| class | guanaqo::PrintMatrixView< T > |
| struct | guanaqo::PrintOpts |
Namespaces | |
| namespace | guanaqo |
| namespace | guanaqo::detail |
Functions | |
| template<std::floating_point F> | |
| std::string_view | guanaqo::float_to_str_vw (std::span< char > buf, F value, int precision=std::numeric_limits< F >::max_digits10) |
| template<std::floating_point F> | |
| std::string | guanaqo::float_to_str (F value, int precision) |
| template<class T> | |
| std::ostream & | guanaqo::detail::print_csv_impl (std::ostream &os, PrintMatrixView< const T > M, PrintOpts opts) |
| template<class T> | |
| std::ostream & | guanaqo::detail::print_matlab_impl (std::ostream &os, PrintMatrixView< const T > M, std::string_view end) |
| template<class T> | |
| std::ostream & | guanaqo::detail::print_python_impl (std::ostream &os, PrintMatrixView< const T > M, std::string_view end, bool squeeze) |
| template<class T, std::size_t E> | |
| std::ostream & | guanaqo::print_csv (std::ostream &os, std::span< T, E > x, PrintOpts opts={}) |
| template<class T, class I, class S, StorageOrder O> | |
| std::ostream & | guanaqo::print_csv (std::ostream &os, MatrixView< T, I, S, O > X, PrintOpts opts={}) |
| template<class T, std::size_t E> | |
| std::ostream & | guanaqo::print_matlab (std::ostream &os, std::span< T, E > x, std::string_view end=";\n") |
| template<class T, class I, class S, StorageOrder O> | |
| std::ostream & | guanaqo::print_matlab (std::ostream &os, MatrixView< T, I, S, O > X, std::string_view end=";\n") |
| template<class T, std::size_t E> | |
| std::ostream & | guanaqo::print_python (std::ostream &os, std::span< T, E > x, std::string_view end="\n", bool squeeze=true) |
| template<class T, class I, class S, StorageOrder O> | |
| std::ostream & | guanaqo::print_python (std::ostream &os, MatrixView< T, I, S, O > X, std::string_view end="\n", bool squeeze=true) |