Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-11-03 08:36:57


Author: johnmaddock
Date: 2007-11-03 08:36:55 EDT (Sat, 03 Nov 2007)
New Revision: 40719
URL: http://svn.boost.org/trac/boost/changeset/40719

Log:
Hopefully, take care of the remaining Tru64 failures: adjust >= test to > in some of the tests, and fix one expected error level for the incomplete beta function.
Text files modified:
   trunk/boost/math/concepts/std_real_concept.hpp | 4 ++--
   trunk/libs/math/test/test_ibeta.cpp | 2 +-
   trunk/libs/math/test/test_ibeta_inv.cpp | 8 ++++++--
   trunk/libs/math/test/test_ibeta_inv_ab.cpp | 8 ++++++--
   trunk/libs/math/test/test_igamma_inv.cpp | 4 +++-
   trunk/libs/math/test/test_igamma_inva.cpp | 4 +++-
   6 files changed, 21 insertions(+), 9 deletions(-)

Modified: trunk/boost/math/concepts/std_real_concept.hpp
==============================================================================
--- trunk/boost/math/concepts/std_real_concept.hpp (original)
+++ trunk/boost/math/concepts/std_real_concept.hpp 2007-11-03 08:36:55 EDT (Sat, 03 Nov 2007)
@@ -52,7 +52,7 @@
    std_real_concept(int c) : m_value(c){}
    std_real_concept(unsigned long c) : m_value(c){}
    std_real_concept(long c) : m_value(c){}
-#ifdef BOOST_HAS_LONG_LONG
+#if defined(BOOST_HAS_LONG_LONG) || defined(__DECCXX) || defined(__SUNPRO_CC)
    std_real_concept(unsigned long long c) : m_value(static_cast<long double>(c)){}
    std_real_concept(long long c) : m_value(static_cast<long double>(c)){}
 #endif
@@ -73,7 +73,7 @@
    std_real_concept& operator=(unsigned int c) { m_value = c; return *this; }
    std_real_concept& operator=(long c) { m_value = c; return *this; }
    std_real_concept& operator=(unsigned long c) { m_value = c; return *this; }
-#ifdef BOOST_HAS_LONG_LONG
+#if defined(BOOST_HAS_LONG_LONG) || defined(__DECCXX) || defined(__SUNPRO_CC)
    std_real_concept& operator=(long long c) { m_value = static_cast<long double>(c); return *this; }
    std_real_concept& operator=(unsigned long long c) { m_value = static_cast<long double>(c); return *this; }
 #endif

Modified: trunk/libs/math/test/test_ibeta.cpp
==============================================================================
--- trunk/libs/math/test/test_ibeta.cpp (original)
+++ trunk/libs/math/test/test_ibeta.cpp 2007-11-03 08:36:55 EDT (Sat, 03 Nov 2007)
@@ -150,7 +150,7 @@
       ".*", // platform
       largest_type, // test type(s)
       "(?i).*large.*", // test data group
- ".*", 100000, 10000); // test function
+ ".*", 130000, 10000); // test function
    //
    // Sun OS:
    //

Modified: trunk/libs/math/test/test_ibeta_inv.cpp
==============================================================================
--- trunk/libs/math/test/test_ibeta_inv.cpp (original)
+++ trunk/libs/math/test/test_ibeta_inv.cpp 2007-11-03 08:36:55 EDT (Sat, 03 Nov 2007)
@@ -187,7 +187,9 @@
       //
       if(data[i][5] == 0)
          BOOST_CHECK_EQUAL(boost::math::ibeta_inv(data[i][0], data[i][1], data[i][5]), value_type(0));
- else if((1 - data[i][5] > 0.001) && (fabs(data[i][5]) >= boost::math::tools::min_value<value_type>()) && (fabs(data[i][5]) >= boost::math::tools::min_value<double>()))
+ else if((1 - data[i][5] > 0.001)
+ && (fabs(data[i][5]) > 2 * boost::math::tools::min_value<value_type>())
+ && (fabs(data[i][5]) > 2 * boost::math::tools::min_value<double>()))
       {
          value_type inv = boost::math::ibeta_inv(data[i][0], data[i][1], data[i][5]);
          BOOST_CHECK_CLOSE(data[i][2], inv, precision);
@@ -197,7 +199,9 @@
 
       if(data[i][6] == 0)
          BOOST_CHECK_EQUAL(boost::math::ibetac_inv(data[i][0], data[i][1], data[i][6]), value_type(1));
- else if((1 - data[i][6] > 0.001) && (fabs(data[i][6]) >= boost::math::tools::min_value<value_type>()) && (fabs(data[i][6]) >= boost::math::tools::min_value<double>()))
+ else if((1 - data[i][6] > 0.001)
+ && (fabs(data[i][6]) > 2 * boost::math::tools::min_value<value_type>())
+ && (fabs(data[i][6]) > 2 * boost::math::tools::min_value<double>()))
       {
          value_type inv = boost::math::ibetac_inv(data[i][0], data[i][1], data[i][6]);
          BOOST_CHECK_CLOSE(data[i][2], inv, precision);

Modified: trunk/libs/math/test/test_ibeta_inv_ab.cpp
==============================================================================
--- trunk/libs/math/test/test_ibeta_inv_ab.cpp (original)
+++ trunk/libs/math/test/test_ibeta_inv_ab.cpp 2007-11-03 08:36:55 EDT (Sat, 03 Nov 2007)
@@ -137,7 +137,9 @@
          BOOST_CHECK_EQUAL(boost::math::ibeta_inva(data[i][1], data[i][2], data[i][5]), boost::math::tools::max_value<value_type>());
          BOOST_CHECK_EQUAL(boost::math::ibeta_invb(data[i][0], data[i][2], data[i][5]), boost::math::tools::min_value<value_type>());
       }
- else if((1 - data[i][5] > 0.001) && (fabs(data[i][5]) >= boost::math::tools::min_value<value_type>()) && (fabs(data[i][5]) >= boost::math::tools::min_value<double>()))
+ else if((1 - data[i][5] > 0.001)
+ && (fabs(data[i][5]) > 2 * boost::math::tools::min_value<value_type>())
+ && (fabs(data[i][5]) > 2 * boost::math::tools::min_value<double>()))
       {
          value_type inv = boost::math::ibeta_inva(data[i][1], data[i][2], data[i][5]);
          BOOST_CHECK_CLOSE(data[i][0], inv, precision);
@@ -155,7 +157,9 @@
          BOOST_CHECK_EQUAL(boost::math::ibetac_inva(data[i][1], data[i][2], data[i][6]), boost::math::tools::min_value<value_type>());
          BOOST_CHECK_EQUAL(boost::math::ibetac_invb(data[i][0], data[i][2], data[i][6]), boost::math::tools::max_value<value_type>());
       }
- else if((1 - data[i][6] > 0.001) && (fabs(data[i][6]) >= boost::math::tools::min_value<value_type>()) && (fabs(data[i][6]) >= boost::math::tools::min_value<double>()))
+ else if((1 - data[i][6] > 0.001)
+ && (fabs(data[i][6]) > 2 * boost::math::tools::min_value<value_type>())
+ && (fabs(data[i][6]) > 2 * boost::math::tools::min_value<double>()))
       {
          value_type inv = boost::math::ibetac_inva(data[i][1], data[i][2], data[i][6]);
          BOOST_CHECK_CLOSE(data[i][0], inv, precision);

Modified: trunk/libs/math/test/test_igamma_inv.cpp
==============================================================================
--- trunk/libs/math/test/test_igamma_inv.cpp (original)
+++ trunk/libs/math/test/test_igamma_inv.cpp 2007-11-03 08:36:55 EDT (Sat, 03 Nov 2007)
@@ -222,7 +222,9 @@
       //
       if(data[i][5] == 0)
          BOOST_CHECK_EQUAL(boost::math::gamma_p_inv(data[i][0], data[i][5]), value_type(0));
- else if((1 - data[i][5] > 0.001) && (fabs(data[i][5]) >= boost::math::tools::min_value<value_type>()) && (fabs(data[i][5]) >= boost::math::tools::min_value<double>()))
+ else if((1 - data[i][5] > 0.001)
+ && (fabs(data[i][5]) > 2 * boost::math::tools::min_value<value_type>())
+ && (fabs(data[i][5]) > 2 * boost::math::tools::min_value<double>()))
       {
          value_type inv = boost::math::gamma_p_inv(data[i][0], data[i][5]);
          BOOST_CHECK_CLOSE(data[i][1], inv, precision);

Modified: trunk/libs/math/test/test_igamma_inva.cpp
==============================================================================
--- trunk/libs/math/test/test_igamma_inva.cpp (original)
+++ trunk/libs/math/test/test_igamma_inva.cpp 2007-11-03 08:36:55 EDT (Sat, 03 Nov 2007)
@@ -165,7 +165,9 @@
 
       if(data[i][3] == 0)
          BOOST_CHECK_EQUAL(boost::math::gamma_q_inva(data[i][1], data[i][3]), boost::math::tools::min_value<value_type>());
- else if((1 - data[i][3] > 0.001) && (fabs(data[i][3]) >= boost::math::tools::min_value<value_type>()) && (fabs(data[i][3]) >= boost::math::tools::min_value<double>()))
+ else if((1 - data[i][3] > 0.001)
+ && (fabs(data[i][3]) > 2 * boost::math::tools::min_value<value_type>())
+ && (fabs(data[i][3]) > 2 * boost::math::tools::min_value<double>()))
       {
          value_type inv = boost::math::gamma_q_inva(data[i][1], data[i][3]);
          BOOST_CHECK_CLOSE(data[i][0], inv, 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