|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <cmath>#include <cstdint>#include <limits>#include <type_traits>#include <vector>#include <universal/number/lindex/math/constants.hpp>#include <universal/number/dd_cascade/dd_cascade.hpp>#include <universal/number/qd_cascade/qd_cascade.hpp>#include <universal/number/efloat/core.hpp>#include <universal/number/efloat/math/exponent.hpp>#include <universal/number/efloat/math/logarithm.hpp>#include <universal/number/efloat/math/truncate.hpp>#include <universal/number/efloat/math/trigonometry.hpp>Classes | |
| struct | sw::universal::lindex_math::exact_point |
Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
| namespace | sw::universal::lindex_math |
Typedefs | |
| using | sw::universal::lindex_math::exact_float = efloat<2> |
Functions | |
| template<typename W> | |
| W | sw::universal::lindex_math::pi () noexcept |
| template<typename L> | |
| bool | sw::universal::lindex_math::past_double_range (std::uint64_t mag) noexcept |
| template<typename L> | |
| L | sw::universal::lindex_math::from_magnitude (std::uint64_t mag, bool negative) noexcept |
| template<typename L, typename Eval> | |
| L | sw::universal::lindex_math::round_value (Eval &&eval) noexcept |
| std::uint64_t | sw::universal::lindex_math::integer_of (const exact_float &v) noexcept |
| template<typename L> | |
| exact_float | sw::universal::lindex_math::phi_value (std::uint64_t mag, unsigned bits) |
| exact_float | sw::universal::lindex_math::from_qd (const qd_cascade &q, unsigned bits) |
| qd_cascade | sw::universal::lindex_math::to_qd (exact_float v) |
| exact_point | sw::universal::lindex_math::psi_of (exact_float v) |
| template<typename L, typename Eval> | |
| L | sw::universal::lindex_math::round_exact (Eval &&eval, unsigned bits) |