|
Uni20
Asynchronous tensor and runtime library.
|
#include "numeric_limits.hpp"#include "scalar_concepts.hpp"#include "types.hpp"#include <cerrno>#include <cmath>#include <cstdlib>#include <fmt/format.h>#include <istream>#include <stdexcept>#include <string>#include <string_view>#include <type_traits>Go to the source code of this file.
Classes | |
| struct | uni20::scalar_format_options |
| Formatting options for Uni20 real and complex scalars. More... | |
Namespaces | |
| namespace | uni20 |
Enumerations | |
| enum class | uni20::real_format_notation { uni20::real_format_notation::general , uni20::real_format_notation::fixed , uni20::real_format_notation::scientific } |
| Selects how real scalar values are rendered as text. More... | |
Functions | |
| template<Complex T> | |
| std::string | uni20::format_complex (T const &value, scalar_format_options const &options={}) |
Format a Uni20 complex scalar as real+imagi. | |
| template<Real T> | |
| std::string | uni20::format_real (T value, scalar_format_options const &options={}) |
| Format a Uni20 real scalar. | |
| template<RealOrComplex T> | |
| std::string | uni20::format_scalar (T const &value, scalar_format_options const &options={}) |
| Format any Uni20 real or complex scalar. | |
| template<Real T> | |
| T | uni20::parse_real (std::string_view text) |
| Parse a Uni20 real scalar from text. | |
| template<Real T> | |
| std::istream & | uni20::read_real (std::istream &stream, T &value) |
| Read a Uni20 real scalar from a stream token. | |