2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Changed "policy" directory to "policies" to match the namespace name.

[SVN r38780]
This commit is contained in:
John Maddock
2007-08-20 12:43:32 +00:00
parent 9cf861c275
commit bb1931edec
47 changed files with 61 additions and 61 deletions

View File

@@ -17,7 +17,7 @@
// using namespace boost::math;
//.\error_policy_normal.cpp(30) : error C2872: 'policy' : ambiguous symbol
// could be 'I:\Boost-sandbox\math_toolkit\boost/math/policy/policy.hpp(392) : boost::math::policies::policy'
// could be 'I:\Boost-sandbox\math_toolkit\boost/math/policies/policy.hpp(392) : boost::math::policies::policy'
// or 'boost::math::policies'
// So can't use this using namespace command.

View File

@@ -17,7 +17,7 @@ any of the default ones supplied by the library to be used. If
we set the policy for a specific type of error to `user_error`
then the library will call a user-supplied error handler.
These are forward declared, but not defined in
boost/math/policy/error_handling.hpp like this:
boost/math/policies/error_handling.hpp like this:
namespace boost{ namespace math{ namespace policy{

View File

@@ -24,7 +24,7 @@
#include <boost/limits.hpp>
#include <boost/math/tools/real_cast.hpp>
#include <boost/math/tools/precision.hpp>
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
#include <ostream>
#include <istream>

View File

@@ -20,7 +20,7 @@
#include <boost/limits.hpp>
#include <boost/math/tools/real_cast.hpp>
#include <boost/math/tools/precision.hpp>
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
#include <ostream>
#include <istream>

View File

@@ -9,7 +9,7 @@
#ifndef BOOST_MATH_DISTRIBUTIONS_COMMON_ERROR_HANDLING_HPP
#define BOOST_MATH_DISTRIBUTIONS_COMMON_ERROR_HANDLING_HPP
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#ifdef BOOST_MSVC

View File

@@ -232,22 +232,22 @@ namespace boost
return result + k;
} // RealType find_number_of_failures
//static RealType find_maximum_number_of_trials(
// RealType k, // number of failures (k >= 0).
// RealType p, // success fraction 0 <= p <= 1.
// RealType alpha) // risk level threshold 0 <= alpha <= 1.
//{
// static const char* function = "boost::math::negative_binomial<%1%>::estimate_maximum_number_of_trials";
// // Error checks:
// RealType result;
// if(false == negative_binomial_detail::check_dist_and_k(
// function, RealType(1), p, k, &result, Policy())
// && detail::check_probability(function, alpha, &result, Policy()))
// { return result; }
static RealType find_maximum_number_of_trials(
RealType k, // number of failures (k >= 0).
RealType p, // success fraction 0 <= p <= 1.
RealType alpha) // risk level threshold 0 <= alpha <= 1.
{
static const char* function = "boost::math::negative_binomial<%1%>::estimate_maximum_number_of_trials";
// Error checks:
RealType result;
if(false == negative_binomial_detail::check_dist_and_k(
function, RealType(1), p, k, &result, Policy())
&& detail::check_probability(function, alpha, &result, Policy()))
{ return result; }
// result = ibetac_inva(k + 1, p, alpha, Policy()); // returns n - k
// return result + k;
//} // RealType find_number_of_trials complemented
result = ibetac_inva(k + 1, p, alpha, Policy()); // returns n - k
return result + k;
} // RealType find_number_of_trials complemented
private:
RealType m_r; // successes.

View File

@@ -15,7 +15,7 @@
#include <cmath>
#include <stdexcept>
#include <boost/math/tools/config.hpp>
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
#include <boost/math/tools/precision.hpp>
#include <boost/cstdint.hpp>
#ifdef BOOST_MSVC

View File

@@ -14,7 +14,7 @@
#include <cmath>
#include <boost/config.hpp>
#include <boost/math/tools/precision.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
// This is the inverse of the hyperbolic cosine function.

View File

@@ -14,7 +14,7 @@
#include <cmath>
#include <boost/config.hpp>
#include <boost/math/tools/precision.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
// This is the inverse of the hyperbolic tangent function.

View File

@@ -8,7 +8,7 @@
#include <boost/math/special_functions/factorials.hpp>
#include <boost/math/special_functions/beta.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
namespace boost{ namespace math{

View File

@@ -9,7 +9,7 @@
#include <boost/math/special_functions/gamma.hpp>
#include <boost/math/special_functions/sin_pi.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/tools/config.hpp>
// Modified Bessel functions of the first and second kind of fractional order

View File

@@ -15,7 +15,7 @@
#include <boost/math/special_functions/detail/simple_complex.hpp>
#include <boost/math/special_functions/detail/bessel_jy_asym.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/mpl/if.hpp>
#include <boost/type_traits/is_floating_point.hpp>
#include <complex>

View File

@@ -7,7 +7,7 @@
#define BOOST_MATH_BESSEL_K0_HPP
#include <boost/math/tools/rational.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/assert.hpp>
// Modified Bessel function of the second kind of order zero

View File

@@ -7,7 +7,7 @@
#define BOOST_MATH_BESSEL_K1_HPP
#include <boost/math/tools/rational.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/assert.hpp>
// Modified Bessel function of the second kind of order one

View File

@@ -8,7 +8,7 @@
#include <boost/math/special_functions/detail/bessel_k0.hpp>
#include <boost/math/special_functions/detail/bessel_k1.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
// Modified Bessel function of the second kind of integer order
// K_n(z) is the dominant solution, forward recurrence always OK (though unstable)

View File

@@ -9,7 +9,7 @@
#include <boost/math/special_functions/detail/bessel_j0.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/math/tools/rational.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/assert.hpp>
// Bessel function of the second kind of order zero

View File

@@ -9,7 +9,7 @@
#include <boost/math/special_functions/detail/bessel_j1.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/math/tools/rational.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/assert.hpp>
// Bessel function of the second kind of order one

View File

@@ -8,7 +8,7 @@
#include <boost/math/special_functions/detail/bessel_y0.hpp>
#include <boost/math/special_functions/detail/bessel_y1.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
// Bessel function of the second kind of integer order
// Y_n(z) is the dominant solution, forward recurrence always OK (though unstable)

View File

@@ -9,7 +9,7 @@
#include <boost/math/special_functions/gamma.hpp>
#include <boost/math/special_functions/sign.hpp>
#include <boost/math/tools/roots.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/tr1/tuple.hpp>
namespace boost{ namespace math{

View File

@@ -8,7 +8,7 @@
#include <boost/math/tools/rational.hpp>
#include <boost/math/tools/promotion.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/mpl/comparison.hpp>

View File

@@ -16,7 +16,7 @@
#include <boost/math/special_functions/ellint_rf.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
// Elliptic integrals (complete and incomplete) of the first kind
// Carlson, Numerische Mathematik, vol 33, 1 (1979)

View File

@@ -17,7 +17,7 @@
#include <boost/math/special_functions/ellint_rf.hpp>
#include <boost/math/special_functions/ellint_rd.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
// Elliptic integrals (complete and incomplete) of the second kind
// Carlson, Numerische Mathematik, vol 33, 1 (1979)

View File

@@ -20,7 +20,7 @@
#include <boost/math/special_functions/ellint_2.hpp>
#include <boost/math/special_functions/log1p.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
// Elliptic integrals (complete and incomplete) of the third kind
// Carlson, Numerische Mathematik, vol 33, 1 (1979)

View File

@@ -13,7 +13,7 @@
#ifndef BOOST_MATH_ELLINT_RC_HPP
#define BOOST_MATH_ELLINT_RC_HPP
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/tools/config.hpp>
#include <boost/math/special_functions/math_fwd.hpp>

View File

@@ -13,7 +13,7 @@
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/config.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
// Carlson's elliptic integral of the second kind
// R_D(x, y, z) = R_J(x, y, z, z) = 1.5 * \int_{0}^{\infty} [(t+x)(t+y)]^{-1/2} (t+z)^{-3/2} dt

View File

@@ -15,7 +15,7 @@
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/config.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
// Carlson's elliptic integral of the first kind
// R_F(x, y, z) = 0.5 * \int_{0}^{\infty} [(t+x)(t+y)(t+z)]^{-1/2} dt

View File

@@ -15,7 +15,7 @@
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/config.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/special_functions/ellint_rc.hpp>
// Carlson's elliptic integral of the third kind

View File

@@ -10,7 +10,7 @@
#include <boost/math/tools/config.hpp>
#include <boost/math/special_functions/gamma.hpp>
#include <boost/math/tools/roots.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
namespace boost{ namespace math{

View File

@@ -12,7 +12,7 @@
#include <boost/math/tools/config.hpp>
#include <boost/math/tools/series.hpp>
#include <boost/math/tools/precision.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/tools/rational.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/mpl/less_equal.hpp>

View File

@@ -25,7 +25,7 @@
#include <boost/math/tools/precision.hpp>
#include <boost/math/tools/real_cast.hpp>
#include <boost/math/tools/promotion.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/special_functions/log1p.hpp>

View File

@@ -9,7 +9,7 @@
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/config.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
namespace boost{
namespace math{

View File

@@ -8,7 +8,7 @@
#include <boost/math/tools/config.hpp>
#include <boost/math/tools/precision.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <cmath>
#include <algorithm> // for swap

View File

@@ -9,7 +9,7 @@
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/config.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
namespace boost{
namespace math{

View File

@@ -11,7 +11,7 @@
#include <boost/limits.hpp>
#include <boost/cstdint.hpp>
#include <boost/math/tools/rational.hpp>
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
#include <boost/mpl/less_equal.hpp>
#include <limits.h>

View File

@@ -11,7 +11,7 @@
#include <boost/limits.hpp>
#include <boost/math/tools/config.hpp>
#include <boost/math/tools/series.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS

View File

@@ -20,7 +20,7 @@
#define BOOST_MATH_SPECIAL_MATH_FWD_HPP
#include <boost/math/tools/promotion.hpp> // for argument promotion.
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
#include <boost/mpl/comparison.hpp>
#include <complex>

View File

@@ -13,7 +13,7 @@
#include <boost/math/tools/config.hpp>
#include <boost/math/tools/precision.hpp>
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <cmath>
#include <boost/limits.hpp>

View File

@@ -10,7 +10,7 @@
#include <utility>
#include <cmath>
#include <boost/math/tools/precision.hpp>
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
#include <boost/cstdint.hpp>
namespace boost{ namespace math{ namespace tools{

View File

@@ -11,7 +11,7 @@
#include <boost/math/tools/real_cast.hpp>
#include <boost/math/tools/precision.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
namespace NTL
{

View File

@@ -12,7 +12,7 @@
#include <boost/mpl/int.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/if.hpp>
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
#include <iostream>
#include <iomanip>

View File

@@ -13,7 +13,7 @@
#include <boost/function/function1.hpp>
#include <boost/scoped_array.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
namespace boost{ namespace math{ namespace tools{

View File

@@ -26,7 +26,7 @@
#include <boost/math/special_functions/sign.hpp>
#include <boost/math/tools/toms748_solve.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
namespace boost{ namespace math{ namespace tools{

View File

@@ -7,7 +7,7 @@
#define BOOST_MATH_TOOLS_SOLVE_ROOT_HPP
#include <boost/math/tools/precision.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/tools/config.hpp>
#include <boost/math/special_functions/sign.hpp>
#include <boost/cstdint.hpp>

View File

@@ -8,7 +8,7 @@
#include <boost/math/tools/config.hpp>
#include <boost/type_traits/is_same.hpp>
#include "performance_measure.hpp"
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
extern void reference_evaluate();

View File

@@ -55,8 +55,8 @@ T user_evaluation_error(const char* , const char* , const T& )
}}} // namespaces
#include <boost/math/policy/policy.hpp>
#include <boost/math/policy/error_handling.hpp>
#include <boost/math/policies/policy.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/included/test_exec_monitor.hpp> // for test_main
//

View File

@@ -6,7 +6,7 @@
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/math/policy/policy.hpp>
#include <boost/math/policies/policy.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/test/included/test_exec_monitor.hpp> // for test_main