Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51501 - in trunk/boost/math: distributions/detail special_functions/detail
From: john_at_[hidden]
Date: 2009-03-01 07:19:05


Author: johnmaddock
Date: 2009-03-01 07:19:04 EST (Sun, 01 Mar 2009)
New Revision: 51501
URL: http://svn.boost.org/trac/boost/changeset/51501

Log:
Adjust fudge factor upwards to try and fix some of the current regression test failures.
Add option to disable use of std::fpclassify.
Text files modified:
   trunk/boost/math/distributions/detail/hypergeometric_quantile.hpp | 2 +-
   trunk/boost/math/special_functions/detail/fp_traits.hpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/math/distributions/detail/hypergeometric_quantile.hpp
==============================================================================
--- trunk/boost/math/distributions/detail/hypergeometric_quantile.hpp (original)
+++ trunk/boost/math/distributions/detail/hypergeometric_quantile.hpp 2009-03-01 07:19:04 EST (Sun, 01 Mar 2009)
@@ -99,7 +99,7 @@
    typedef typename Policy::discrete_quantile_type discrete_quantile_type;
    BOOST_MATH_STD_USING
    T result;
- T fudge_factor = 1 + tools::epsilon<T>() * ((N <= boost::math::prime(boost::math::max_prime - 1)) ? 50 : N);
+ T fudge_factor = 1 + tools::epsilon<T>() * ((N <= boost::math::prime(boost::math::max_prime - 1)) ? 50 : 2 * N);
    unsigned base = static_cast<unsigned>((std::max)(0, (int)(n + r) - (int)(N)));
    unsigned lim = (std::min)(r, n);
 

Modified: trunk/boost/math/special_functions/detail/fp_traits.hpp
==============================================================================
--- trunk/boost/math/special_functions/detail/fp_traits.hpp (original)
+++ trunk/boost/math/special_functions/detail/fp_traits.hpp 2009-03-01 07:19:04 EST (Sun, 01 Mar 2009)
@@ -551,7 +551,7 @@
 
 template<class T> struct fp_traits
 {
-#ifdef BOOST_MATH_USE_STD_FPCLASSIFY
+#if defined(BOOST_MATH_USE_STD_FPCLASSIFY) && !defined(BOOST_MATH_DISABLE_STD_FPCLASSIFY)
     typedef typename select_native<T>::type type;
 #else
     typedef BOOST_DEDUCED_TYPENAME size_to_precision<sizeof(T), ::boost::is_floating_point<T>::value>::type precision;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk