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::faithful_detail Namespace Reference

Namespaces

namespace  constants

Classes

struct  split_constant
class  exact_expansion
struct  reduction_real

Concepts

concept  trig_host

Functions

template<typename Real>
constexpr Real pow2 (int e)
template<typename Real>
bool part_isinf (const Real &v)
template<typename Real>
bool part_isnan (const Real &v)
template<typename Real>
bool part_isfinite (const Real &v)
template<typename Real, int N>
split_constant< Real, N > split (const double(&c)[4])
template<typename Real>
faithful< Real > pair (const double(&c)[4])
template<typename Real>
faithful< Real > scale2 (const faithful< Real > &x, int k)
template<typename Real>
faithful< Real > reduce_ln2 (const faithful< Real > &x, Real m)
template<typename Real>
faithful< Real > reduce_scaled_ln2 (const faithful< Real > &x, const split_constant< Real, 4 > &c, Real m)
template<typename Real>
faithful< Real > expm1_kernel (const faithful< Real > &r)
template<typename Real>
faithful< Real > exp_reduced (const faithful< Real > &reduced, Real m)
template<typename Real>
faithful< Real > exp_finite (const faithful< Real > &x)
template<typename Real>
faithful< Real > half_exp_large (const faithful< Real > &ax)
template<typename Real>
faithful< Real > two_atanh (const faithful< Real > &s)
template<typename Real>
faithful< Real > log_centered (const faithful< Real > &b)
template<typename Real>
faithful< Real > center (const faithful< Real > &x, int &k)
template<typename Real>
faithful< Real > log_domain_error ()
template<typename Real>
bool log_special (const faithful< Real > &x, faithful< Real > &r)
template<typename Real>
bool is_integer (const faithful< Real > &y)
template<typename Real>
bool is_odd_integer (const faithful< Real > &y)
template<typename Real>
faithful< Real > ipow (const faithful< Real > &x, int n)
template<typename Real>
int reduce_pio2 (const faithful< Real > &x, faithful< Real > &t)
template<typename Real>
faithful< Real > sin_kernel (const faithful< Real > &t)
template<typename Real>
faithful< Real > cos_kernel (const faithful< Real > &t)
template<typename Real>
void sincos (const faithful< Real > &x, faithful< Real > &s, faithful< Real > &c)
template<typename Real>
faithful< Real > domain_error (const char *function)
template<typename Real>
faithful< Real > canonical (const faithful< Real > &x)

Function Documentation

◆ canonical()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::canonical ( const faithful< Real > & x)
inline

◆ center()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::center ( const faithful< Real > & x,
int & k )
inline

◆ cos_kernel()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::cos_kernel ( const faithful< Real > & t)
inline

◆ domain_error()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::domain_error ( const char * function)
inline

◆ exp_finite()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::exp_finite ( const faithful< Real > & x)
inline

◆ exp_reduced()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::exp_reduced ( const faithful< Real > & reduced,
Real m )
inline

◆ expm1_kernel()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::expm1_kernel ( const faithful< Real > & r)
inline

◆ half_exp_large()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::half_exp_large ( const faithful< Real > & ax)
inline

◆ ipow()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::ipow ( const faithful< Real > & x,
int n )
inline

◆ is_integer()

template<typename Real>
bool sw::universal::faithful_detail::is_integer ( const faithful< Real > & y)
inline

◆ is_odd_integer()

template<typename Real>
bool sw::universal::faithful_detail::is_odd_integer ( const faithful< Real > & y)
inline

◆ log_centered()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::log_centered ( const faithful< Real > & b)
inline

◆ log_domain_error()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::log_domain_error ( )
inline

◆ log_special()

template<typename Real>
bool sw::universal::faithful_detail::log_special ( const faithful< Real > & x,
faithful< Real > & r )
inline

◆ pair()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::pair ( const double(&) c[4])
inline

◆ part_isfinite()

template<typename Real>
bool sw::universal::faithful_detail::part_isfinite ( const Real & v)
inline

◆ part_isinf()

template<typename Real>
bool sw::universal::faithful_detail::part_isinf ( const Real & v)
inline

◆ part_isnan()

template<typename Real>
bool sw::universal::faithful_detail::part_isnan ( const Real & v)
inline

◆ pow2()

template<typename Real>
Real sw::universal::faithful_detail::pow2 ( int e)
constexpr

◆ reduce_ln2()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::reduce_ln2 ( const faithful< Real > & x,
Real m )
inline

◆ reduce_pio2()

template<typename Real>
int sw::universal::faithful_detail::reduce_pio2 ( const faithful< Real > & x,
faithful< Real > & t )
inline

◆ reduce_scaled_ln2()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::reduce_scaled_ln2 ( const faithful< Real > & x,
const split_constant< Real, 4 > & c,
Real m )
inline

◆ scale2()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::scale2 ( const faithful< Real > & x,
int k )
inline

◆ sin_kernel()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::sin_kernel ( const faithful< Real > & t)
inline

◆ sincos()

template<typename Real>
void sw::universal::faithful_detail::sincos ( const faithful< Real > & x,
faithful< Real > & s,
faithful< Real > & c )
inline

◆ split()

template<typename Real, int N>
split_constant< Real, N > sw::universal::faithful_detail::split ( const double(&) c[4])
inline

◆ two_atanh()

template<typename Real>
faithful< Real > sw::universal::faithful_detail::two_atanh ( const faithful< Real > & s)
inline