Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51648 - in trunk: boost/math/distributions/detail libs/math/test
From: john_at_[hidden]
Date: 2009-03-08 06:39:30


Author: johnmaddock
Date: 2009-03-08 06:39:29 EDT (Sun, 08 Mar 2009)
New Revision: 51648
URL: http://svn.boost.org/trac/boost/changeset/51648

Log:
Misc. small platform specific fixes and expected error rate adjustments.
Text files modified:
   trunk/boost/math/distributions/detail/hypergeometric_pdf.hpp | 4 ++++
   trunk/libs/math/test/test_beta.cpp | 2 +-
   2 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/boost/math/distributions/detail/hypergeometric_pdf.hpp
==============================================================================
--- trunk/boost/math/distributions/detail/hypergeometric_pdf.hpp (original)
+++ trunk/boost/math/distributions/detail/hypergeometric_pdf.hpp 2009-03-08 06:39:29 EDT (Sun, 08 Mar 2009)
@@ -172,7 +172,11 @@
       return boost::math::pow<8>(x);
    }
    BOOST_MATH_STD_USING
+#ifdef __SUNPRO_CC
+ return pow(x, T(ex));
+#else
    return pow(x, ex);
+#endif
 }
 template <class T>
 struct hypergeometric_pdf_prime_loop_result_entry

Modified: trunk/libs/math/test/test_beta.cpp
==============================================================================
--- trunk/libs/math/test/test_beta.cpp (original)
+++ trunk/libs/math/test/test_beta.cpp 2009-03-08 06:39:29 EDT (Sun, 08 Mar 2009)
@@ -101,7 +101,7 @@
       ".*", // platform
       "real_concept", // test type(s)
       "Beta Function: Medium.*", // test data group
- "boost::math::beta", 130, 35); // test function
+ "boost::math::beta", 150, 40); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib


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