Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74802 - in trunk/boost/math: distributions special_functions/detail
From: john_at_[hidden]
Date: 2011-10-08 08:30:51


Author: johnmaddock
Date: 2011-10-08 08:30:50 EDT (Sat, 08 Oct 2011)
New Revision: 74802
URL: http://svn.boost.org/trac/boost/changeset/74802

Log:
More fixes for UDT's as arguments.
Text files modified:
   trunk/boost/math/distributions/hypergeometric.hpp | 9 ++++++---
   trunk/boost/math/distributions/non_central_t.hpp | 6 +++---
   trunk/boost/math/special_functions/detail/iconv.hpp | 3 ++-
   3 files changed, 11 insertions(+), 7 deletions(-)

Modified: trunk/boost/math/distributions/hypergeometric.hpp
==============================================================================
--- trunk/boost/math/distributions/hypergeometric.hpp (original)
+++ trunk/boost/math/distributions/hypergeometric.hpp 2011-10-08 08:30:50 EDT (Sat, 08 Oct 2011)
@@ -133,9 +133,10 @@
    template <class RealType, class Policy, class U>
    inline RealType pdf(const hypergeometric_distribution<RealType, Policy>& dist, const U& x)
    {
+ BOOST_MATH_STD_USING
       static const char* function = "boost::math::pdf(const hypergeometric_distribution<%1%>&, const %1%&)";
       RealType r = static_cast<RealType>(x);
- unsigned u = boost::math::itrunc(r);
+ unsigned u = itrunc(r);
       if(u != r)
       {
          return boost::math::policies::raise_domain_error<RealType>(
@@ -161,9 +162,10 @@
    template <class RealType, class Policy, class U>
    inline RealType cdf(const hypergeometric_distribution<RealType, Policy>& dist, const U& x)
    {
+ BOOST_MATH_STD_USING
       static const char* function = "boost::math::cdf(const hypergeometric_distribution<%1%>&, const %1%&)";
       RealType r = static_cast<RealType>(x);
- unsigned u = boost::math::itrunc(r);
+ unsigned u = itrunc(r);
       if(u != r)
       {
          return boost::math::policies::raise_domain_error<RealType>(
@@ -189,9 +191,10 @@
    template <class RealType, class Policy, class U>
    inline RealType cdf(const complemented2_type<hypergeometric_distribution<RealType, Policy>, U>& c)
    {
+ BOOST_MATH_STD_USING
       static const char* function = "boost::math::cdf(const hypergeometric_distribution<%1%>&, const %1%&)";
       RealType r = static_cast<RealType>(c.param);
- unsigned u = boost::math::itrunc(r);
+ unsigned u = itrunc(r);
       if(u != r)
       {
          return boost::math::policies::raise_domain_error<RealType>(

Modified: trunk/boost/math/distributions/non_central_t.hpp
==============================================================================
--- trunk/boost/math/distributions/non_central_t.hpp (original)
+++ trunk/boost/math/distributions/non_central_t.hpp 2011-10-08 08:30:50 EDT (Sat, 08 Oct 2011)
@@ -40,7 +40,7 @@
             // k is the starting point for iteration, and is the
             // maximum of the poisson weighting term:
             //
- int k = boost::math::itrunc(d2);
+ int k = itrunc(d2);
             T pois;
             if(k < 15)
             {
@@ -130,7 +130,7 @@
             // k is the starting point for iteration, and is the
             // maximum of the poisson weighting term:
             //
- int k = boost::math::itrunc(d2);
+ int k = itrunc(d2);
             if(k < 30)
             {
                // We typically need around 40 terms so may as well start at 0
@@ -368,7 +368,7 @@
             // k is the starting point for iteration, and is the
             // maximum of the poisson weighting term:
             //
- int k = boost::math::itrunc(d2);
+ int k = itrunc(d2);
             T pois, xterm;
             if(k < 30)
             {

Modified: trunk/boost/math/special_functions/detail/iconv.hpp
==============================================================================
--- trunk/boost/math/special_functions/detail/iconv.hpp (original)
+++ trunk/boost/math/special_functions/detail/iconv.hpp 2011-10-08 08:30:50 EDT (Sat, 08 Oct 2011)
@@ -24,7 +24,8 @@
 template <class T, class Policy>
 inline int iconv_imp(T v, Policy const& pol, mpl::false_ const&)
 {
- return boost::math::iround(v);
+ BOOST_MATH_STD_USING
+ return iround(v);
 }
 
 template <class T, class Policy>


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