Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66797 - trunk/boost/math/distributions
From: pbristow_at_[hidden]
Date: 2010-11-27 11:11:28


Author: pbristow
Date: 2010-11-27 11:11:27 EST (Sat, 27 Nov 2010)
New Revision: 66797
URL: http://svn.boost.org/trac/boost/changeset/66797

Log:
Changed make_tuple from std::tr1:: to boost::math

qualified numeric_limits with std.
Text files modified:
   trunk/boost/math/distributions/inverse_gaussian.hpp | 5 ++---
   1 files changed, 2 insertions(+), 3 deletions(-)

Modified: trunk/boost/math/distributions/inverse_gaussian.hpp
==============================================================================
--- trunk/boost/math/distributions/inverse_gaussian.hpp (original)
+++ trunk/boost/math/distributions/inverse_gaussian.hpp 2010-11-27 11:11:27 EST (Sat, 27 Nov 2010)
@@ -217,7 +217,7 @@
     RealType fx = c - prob; // Difference cdf - value - to minimize.
     RealType dx = pdf(distribution, x); // pdf is 1st derivative.
     // return both function evaluation difference f(x) and 1st derivative f'(x).
- return std::tr1::make_tuple(fx, dx);
+ return boost::math::make_tuple(fx, dx);
   }
   private:
   const boost::math::inverse_gaussian_distribution<RealType> distribution;
@@ -237,7 +237,6 @@
     RealType fx = c - prob; // Difference cdf - value - to minimize.
     RealType dx = -pdf(distribution, x); // pdf is 1st derivative.
     // return both function evaluation difference f(x) and 1st derivative f'(x).
-
     //return std::tr1::make_tuple(fx, dx);
     return boost::math::make_tuple(fx, dx);
   }
@@ -326,7 +325,7 @@
    }
    if (p == 1)
    { // Might not return infinity?
- return numeric_limits<RealType>::infinity();
+ return std::numeric_limits<RealType>::infinity();
    }
   //RealType guess_ig(RealType p, RealType mu = 1, RealType lambda = 1);
 


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