Mercurial > hg > vamp-build-and-test
diff DEPENDENCIES/generic/include/boost/math/distributions/pareto.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
line wrap: on
line diff
--- a/DEPENDENCIES/generic/include/boost/math/distributions/pareto.hpp Fri Sep 04 12:01:02 2015 +0100 +++ b/DEPENDENCIES/generic/include/boost/math/distributions/pareto.hpp Mon Sep 07 11:12:49 2015 +0100 @@ -236,7 +236,7 @@ } if (p == 1) { - return tools::max_value<RealType>(); // x = + infinity. + return policies::raise_overflow_error<RealType>(function, 0, Policy()); // x = + infinity. } result = scale / (pow((1 - p), 1 / shape)); @@ -286,7 +286,7 @@ } if (q == 0) { - return tools::max_value<RealType>(); // x = + infinity. + return policies::raise_overflow_error<RealType>(function, 0, Policy()); // x = + infinity. } result = scale / (pow(q, 1 / shape)); // K. Krishnamoorthy, ISBN 1-58488-635-8 eq 23.1.3