1 // Copyright John Maddock 2007.
2 // Copyright Paul A. Bristow 2007.
4 // Use, modification and distribution are subject to the
5 // Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt
7 // or copy at http://www.boost.org/LICENSE_1_0.txt)
9 #ifndef BOOST_MATH_TOOLS_USER_HPP
10 #define BOOST_MATH_TOOLS_USER_HPP
16 // This file can be modified by the user to change the default policies.
17 // See "Changing the Policy Defaults" in documentation.
19 // define this if the platform has no long double functions,
20 // or if the long double versions have only double precision:
22 // #define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
24 // Performance tuning options:
26 // #define BOOST_MATH_POLY_METHOD 3
27 // #define BOOST_MATH_RATIONAL_METHOD 3
29 // The maximum order of polynomial that will be evaluated
30 // via an unrolled specialisation:
32 // #define BOOST_MATH_MAX_POLY_ORDER 17
34 // decide whether to store constants as integers or reals:
36 // #define BOOST_MATH_INT_TABLE_TYPE(RT, IT) IT
39 // Default policies follow:
43 // #define BOOST_MATH_DOMAIN_ERROR_POLICY throw_on_error
47 // #define BOOST_MATH_POLE_ERROR_POLICY throw_on_error
51 // #define BOOST_MATH_OVERFLOW_ERROR_POLICY throw_on_error
53 // Internal Evaluation Errors:
55 // #define BOOST_MATH_EVALUATION_ERROR_POLICY throw_on_error
59 // #define BOOST_MATH_UNDERFLOW_ERROR_POLICY ignore_error
63 // #define BOOST_MATH_DENORM_ERROR_POLICY ignore_error
65 // Max digits to use for internal calculations:
67 // #define BOOST_MATH_DIGITS10_POLICY 0
69 // Promote floats to doubles internally?
71 // #define BOOST_MATH_PROMOTE_FLOAT_POLICY true
73 // Promote doubles to long double internally:
75 // #define BOOST_MATH_PROMOTE_DOUBLE_POLICY true
77 // What do discrete quantiles return?
79 // #define BOOST_MATH_DISCRETE_QUANTILE_POLICY integer_round_outwards
81 // If a function is mathematically undefined
82 // (for example the Cauchy distribution has no mean),
83 // then do we stop the code from compiling?
85 // #define BOOST_MATH_ASSERT_UNDEFINED_POLICY true
87 // Maximum series iterstions permitted:
89 // #define BOOST_MATH_MAX_SERIES_ITERATION_POLICY 1000000
91 // Maximum root finding steps permitted:
93 // define BOOST_MATH_MAX_ROOT_ITERATION_POLICY 200
95 #endif // BOOST_MATH_TOOLS_USER_HPP