Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::lindex_math Namespace Reference

Classes

struct  exact_point

Typedefs

using exact_float = efloat<2>

Enumerations

enum class  integral_mode { floor , ceil , trunc , round }

Functions

template<typename W>
W ln2 () noexcept
template<typename W>
W ln10 () noexcept
template<typename L, typename W>
L::template outcome< W > exp_of (const level_index::point< W > &t, bool negative) noexcept
template<typename L>
bool between_one_and_two (std::uint64_t mag) noexcept
template<typename L>
bool lgamma_past_working (std::uint64_t mag) noexcept
template<typename L, typename W>
L::template outcome< W > lgamma_point (std::uint64_t mag, bool past_working)
exact_float lgamma_of (const exact_float &z, const exact_float &pi_p)
template<typename L>
exact_float reflected_lgamma (std::uint64_t mag, unsigned bits, unsigned scale, bool &gamma_negative)
template<typename L>
unsigned value_scale (std::uint64_t mag) noexcept
template<typename L, typename Lnb>
L exp_base (const L &v, Lnb ln_b)
template<typename L>
exact_float fmod_magnitude (std::uint64_t a, std::uint64_t b, unsigned bits, unsigned scale_x, bool &n_odd)
const level_index::point< qd_cascade > & psi_of_two ()
template<typename L>
unsigned value_scale_of (std::uint64_t mag) noexcept
template<typename L, typename W>
L::template outcome< W > sinh_cosh_of (std::uint64_t mag, bool plus)
template<typename L, typename W>
L::template outcome< W > ln_twice_of (std::uint64_t mag)
template<typename L>
bool huge_for_inverse (std::uint64_t mag) noexcept
template<typename L, typename Lnb>
L log_base (const L &v, Lnb ln_b)
template<typename L, typename Inverse>
L root_magnitude (std::uint64_t mag, bool negative, Inverse inverse_n)
template<typename L, typename F>
L trigonometric (std::uint64_t mag, bool negative, F f)
template<typename W>
W atan_of_point (const level_index::point< W > &p)
template<typename L>
L integral (const L &v, integral_mode mode)
template<typename W>
W pi () noexcept
template<typename L>
bool past_double_range (std::uint64_t mag) noexcept
template<typename L>
L from_magnitude (std::uint64_t mag, bool negative) noexcept
template<typename L, typename Eval>
L round_value (Eval &&eval) noexcept
std::uint64_t integer_of (const exact_float &v) noexcept
template<typename L>
exact_float phi_value (std::uint64_t mag, unsigned bits)
exact_float from_qd (const qd_cascade &q, unsigned bits)
qd_cascade to_qd (exact_float v)
exact_point psi_of (exact_float v)
template<typename L, typename Eval>
L round_exact (Eval &&eval, unsigned bits)

Typedef Documentation

◆ exact_float

Enumeration Type Documentation

◆ integral_mode

Enumerator
floor 
ceil 
trunc 
round 

Function Documentation

◆ atan_of_point()

template<typename W>
W sw::universal::lindex_math::atan_of_point ( const level_index::point< W > & p)

◆ between_one_and_two()

template<typename L>
bool sw::universal::lindex_math::between_one_and_two ( std::uint64_t mag)
noexcept

◆ exp_base()

template<typename L, typename Lnb>
L sw::universal::lindex_math::exp_base ( const L & v,
Lnb ln_b )

◆ exp_of()

template<typename L, typename W>
L::template outcome< W > sw::universal::lindex_math::exp_of ( const level_index::point< W > & t,
bool negative )
noexcept

◆ fmod_magnitude()

template<typename L>
exact_float sw::universal::lindex_math::fmod_magnitude ( std::uint64_t a,
std::uint64_t b,
unsigned bits,
unsigned scale_x,
bool & n_odd )

◆ from_magnitude()

template<typename L>
L sw::universal::lindex_math::from_magnitude ( std::uint64_t mag,
bool negative )
noexcept

◆ from_qd()

exact_float sw::universal::lindex_math::from_qd ( const qd_cascade & q,
unsigned bits )
inline

◆ huge_for_inverse()

template<typename L>
bool sw::universal::lindex_math::huge_for_inverse ( std::uint64_t mag)
noexcept

◆ integer_of()

std::uint64_t sw::universal::lindex_math::integer_of ( const exact_float & v)
inlinenoexcept

◆ integral()

template<typename L>
L sw::universal::lindex_math::integral ( const L & v,
integral_mode mode )

◆ lgamma_of()

exact_float sw::universal::lindex_math::lgamma_of ( const exact_float & z,
const exact_float & pi_p )
inline

◆ lgamma_past_working()

template<typename L>
bool sw::universal::lindex_math::lgamma_past_working ( std::uint64_t mag)
noexcept

◆ lgamma_point()

template<typename L, typename W>
L::template outcome< W > sw::universal::lindex_math::lgamma_point ( std::uint64_t mag,
bool past_working )

◆ ln10()

template<typename W>
W sw::universal::lindex_math::ln10 ( )
noexcept

◆ ln2()

template<typename W>
W sw::universal::lindex_math::ln2 ( )
noexcept

◆ ln_twice_of()

template<typename L, typename W>
L::template outcome< W > sw::universal::lindex_math::ln_twice_of ( std::uint64_t mag)

◆ log_base()

template<typename L, typename Lnb>
L sw::universal::lindex_math::log_base ( const L & v,
Lnb ln_b )

◆ past_double_range()

template<typename L>
bool sw::universal::lindex_math::past_double_range ( std::uint64_t mag)
noexcept

◆ phi_value()

template<typename L>
exact_float sw::universal::lindex_math::phi_value ( std::uint64_t mag,
unsigned bits )

◆ pi()

template<typename W>
W sw::universal::lindex_math::pi ( )
noexcept

◆ psi_of()

exact_point sw::universal::lindex_math::psi_of ( exact_float v)
inline

◆ psi_of_two()

const level_index::point< qd_cascade > & sw::universal::lindex_math::psi_of_two ( )
inline

◆ reflected_lgamma()

template<typename L>
exact_float sw::universal::lindex_math::reflected_lgamma ( std::uint64_t mag,
unsigned bits,
unsigned scale,
bool & gamma_negative )

◆ root_magnitude()

template<typename L, typename Inverse>
L sw::universal::lindex_math::root_magnitude ( std::uint64_t mag,
bool negative,
Inverse inverse_n )

◆ round_exact()

template<typename L, typename Eval>
L sw::universal::lindex_math::round_exact ( Eval && eval,
unsigned bits )

◆ round_value()

template<typename L, typename Eval>
L sw::universal::lindex_math::round_value ( Eval && eval)
noexcept

◆ sinh_cosh_of()

template<typename L, typename W>
L::template outcome< W > sw::universal::lindex_math::sinh_cosh_of ( std::uint64_t mag,
bool plus )

◆ to_qd()

qd_cascade sw::universal::lindex_math::to_qd ( exact_float v)
inline

◆ trigonometric()

template<typename L, typename F>
L sw::universal::lindex_math::trigonometric ( std::uint64_t mag,
bool negative,
F f )

◆ value_scale()

template<typename L>
unsigned sw::universal::lindex_math::value_scale ( std::uint64_t mag)
noexcept

◆ value_scale_of()

template<typename L>
unsigned sw::universal::lindex_math::value_scale_of ( std::uint64_t mag)
noexcept