• Home
  • Raw
  • Download

Lines Matching refs:mpfr

27   * via the <a href="http://www.holoborodko.com/pavel/mpfr">MPFR C++</a>
28 …* library which itself is built upon <a href="http://www.mpfr.org/">MPFR</a>/<a href="http://gmpli…
40 using namespace mpfr;
62 template<> struct NumTraits<mpfr::mpreal>
63 : GenericNumTraits<mpfr::mpreal>
75 typedef mpfr::mpreal Real;
76 typedef mpfr::mpreal NonInteger;
78 …static inline Real highest (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::ma…
79 …static inline Real lowest (long Precision = mpfr::mpreal::get_default_prec()) { return -mpfr::ma…
82 …static inline Real Pi (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::con…
83 …static inline Real Euler (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::con…
84 …static inline Real Log2 (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::con…
85 …static inline Real Catalan (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::con…
87 …static inline Real epsilon (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::mac…
88 …static inline Real epsilon (const Real& x) { return mpfr::mac…
91 …static inline int digits10 (long Precision = mpfr::mpreal::get_default_prec()) { return std::nume…
97 mpfr_prec_t weak_prec = ((mpfr::mpreal::get_default_prec()-1) * 90) / 100;
98 return mpfr::machine_epsilon(weak_prec);
104 template<> inline mpfr::mpreal random<mpfr::mpreal>()
106 return mpfr::random();
109 template<> inline mpfr::mpreal random<mpfr::mpreal>(const mpfr::mpreal& a, const mpfr::mpreal& b)
111 return a + (b-a) * random<mpfr::mpreal>();
114 …inline bool isMuchSmallerThan(const mpfr::mpreal& a, const mpfr::mpreal& b, const mpfr::mpreal& ep…
116 return mpfr::abs(a) <= mpfr::abs(b) * eps;
119 inline bool isApprox(const mpfr::mpreal& a, const mpfr::mpreal& b, const mpfr::mpreal& eps)
121 return mpfr::isEqualFuzzy(a,b,eps);
124 …inline bool isApproxOrLessThan(const mpfr::mpreal& a, const mpfr::mpreal& b, const mpfr::mpreal& e…
126 return a <= b || mpfr::isEqualFuzzy(a,b,eps);
129 template<> inline long double cast<mpfr::mpreal,long double>(const mpfr::mpreal& x)
132 template<> inline double cast<mpfr::mpreal,double>(const mpfr::mpreal& x)
135 template<> inline long cast<mpfr::mpreal,long>(const mpfr::mpreal& x)
138 template<> inline int cast<mpfr::mpreal,int>(const mpfr::mpreal& x)
142 …// This also permits to directly call mpfr's routines and avoid many temporaries produced by mpreal
144 class gebp_traits<mpfr::mpreal, mpfr::mpreal, false, false>
147 typedef mpfr::mpreal ResScalar;
168 struct gebp_kernel<mpfr::mpreal,mpfr::mpreal,Index,DataMapper,1,1,ConjugateLhs,ConjugateRhs>
170 typedef mpfr::mpreal mpreal;