comparison DEPENDENCIES/generic/include/boost/math/bindings/mpfr.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
34 #include <boost/math/policies/policy.hpp> 34 #include <boost/math/policies/policy.hpp>
35 #include <boost/math/distributions/fwd.hpp> 35 #include <boost/math/distributions/fwd.hpp>
36 #include <boost/math/special_functions/math_fwd.hpp> 36 #include <boost/math/special_functions/math_fwd.hpp>
37 #include <boost/math/bindings/detail/big_digamma.hpp> 37 #include <boost/math/bindings/detail/big_digamma.hpp>
38 #include <boost/math/bindings/detail/big_lanczos.hpp> 38 #include <boost/math/bindings/detail/big_lanczos.hpp>
39 #include <boost/math/tools/big_constant.hpp>
39 40
40 inline mpfr_class fabs(const mpfr_class& v) 41 inline mpfr_class fabs(const mpfr_class& v)
41 { 42 {
42 return abs(v); 43 return abs(v);
43 } 44 }
178 inline long long lltrunc(__gmp_expr<T,U> const& x, const Policy& pol) 179 inline long long lltrunc(__gmp_expr<T,U> const& x, const Policy& pol)
179 { 180 {
180 return lltrunc(static_cast<mpfr_class>(x), pol); 181 return lltrunc(static_cast<mpfr_class>(x), pol);
181 } 182 }
182 183
183 namespace boost{ namespace math{ 184 namespace boost{
185
186 #ifdef BOOST_MATH_USE_FLOAT128
187 template<> struct is_convertible<BOOST_MATH_FLOAT128_TYPE, mpfr_class> : public boost::integral_constant<bool, false>{};
188 #endif
189 template<> struct is_convertible<long long, mpfr_class> : public boost::integral_constant<bool, false>{};
190
191 namespace math{
184 192
185 #if defined(__GNUC__) && (__GNUC__ < 4) 193 #if defined(__GNUC__) && (__GNUC__ < 4)
186 using ::iround; 194 using ::iround;
187 using ::lround; 195 using ::lround;
188 using ::llround; 196 using ::llround;