|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <cmath>#include <cstddef>#include <limits>#include <universal/number/elreal/elreal_fwd.hpp>#include <universal/number/elreal/elreal_impl.hpp>#include <universal/number/elreal/math/sqrt.hpp>#include <universal/number/elreal/math/hypot.hpp>#include <universal/number/elreal/math/exponent.hpp>#include <universal/number/elreal/math/hyperbolic.hpp>#include <universal/number/elreal/math/trigonometry.hpp>#include <universal/number/elreal/math/constants.hpp>#include <universal/number/elreal/stream_utilities.hpp>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
| namespace | sw::universal::detail |
Functions | |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::detail::elreal_special (double v, std::size_t d) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::detail::elreal_nan (std::size_t d) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::detail::elreal_inf (int sign, std::size_t d) |
| template<typename FpType> | |
| int | sw::universal::detail::compare_magnitude_with_one (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::sqrt (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::exp (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::log (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::sin (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::cos (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::tan (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::asin (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::acos (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::atan (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::sinh (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::cosh (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::tanh (const elreal< FpType > &x) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::pow (const elreal< FpType > &x, const elreal< FpType > &y) |
| template<typename FpType> | |
| elreal< FpType > | sw::universal::hypot (const elreal< FpType > &x, const elreal< FpType > &y) |
| template<typename FpType = double> | |
| elreal< FpType > | sw::universal::elreal_e (std::size_t depth=0) |
| template<typename FpType = double> | |
| elreal< FpType > | sw::universal::elreal_pi (std::size_t depth=0) |
| template<typename FpType = double> | |
| elreal< FpType > | sw::universal::elreal_ln2 (std::size_t depth=0) |
| template<typename FpType = double> | |
| elreal< FpType > | sw::universal::elreal_ln10 (std::size_t depth=0) |
| template<typename FpType = double> | |
| elreal< FpType > | sw::universal::elreal_log2_10 (std::size_t depth=0) |
| template<typename FpType = double> | |
| elreal< FpType > | sw::universal::elreal_sqrt2 (std::size_t depth=0) |
| template<typename FpType = double> | |
| elreal< FpType > | sw::universal::elreal_sqrt3 (std::size_t depth=0) |
| template<typename FpType = double> | |
| elreal< FpType > | sw::universal::elreal_sqrt5 (std::size_t depth=0) |
| template<typename FpType = double> | |
| elreal< FpType > | sw::universal::elreal_phi (std::size_t depth=0) |
| template<typename FpType = double> | |
| elreal< FpType > | sw::universal::elreal_euler_gamma (std::size_t depth=0) |
Variables | |
| constexpr double | sw::universal::detail::kExpReductionLimit = 4611686018427387904.0 |
| constexpr std::size_t | sw::universal::detail::default_depth_e = 32 |
| constexpr std::size_t | sw::universal::detail::default_depth_pi = 16 |
| constexpr std::size_t | sw::universal::detail::default_depth_ln2 = 16 |
| constexpr std::size_t | sw::universal::detail::default_depth_ln10 = 16 |
| constexpr std::size_t | sw::universal::detail::default_depth_log2_10 = 16 |
| constexpr std::size_t | sw::universal::detail::default_depth_sqrt2 = 16 |
| constexpr std::size_t | sw::universal::detail::default_depth_sqrt3 = 16 |
| constexpr std::size_t | sw::universal::detail::default_depth_sqrt5 = 16 |
| constexpr std::size_t | sw::universal::detail::default_depth_phi = 16 |
| constexpr std::size_t | sw::universal::detail::default_depth_euler_gamma = 16 |