Chris@16
|
1 // Copyright John Maddock 2007.
|
Chris@16
|
2 // Copyright Paul A. Bristow 2007.
|
Chris@16
|
3
|
Chris@16
|
4 // Use, modification and distribution are subject to the
|
Chris@16
|
5 // Boost Software License, Version 1.0.
|
Chris@16
|
6 // (See accompanying file LICENSE_1_0.txt
|
Chris@16
|
7 // or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
8
|
Chris@16
|
9 #ifndef BOOST_MATH_TOOLS_USER_HPP
|
Chris@16
|
10 #define BOOST_MATH_TOOLS_USER_HPP
|
Chris@16
|
11
|
Chris@16
|
12 #ifdef _MSC_VER
|
Chris@16
|
13 #pragma once
|
Chris@16
|
14 #endif
|
Chris@16
|
15
|
Chris@16
|
16 // This file can be modified by the user to change the default policies.
|
Chris@16
|
17 // See "Changing the Policy Defaults" in documentation.
|
Chris@16
|
18
|
Chris@16
|
19 // define this if the platform has no long double functions,
|
Chris@16
|
20 // or if the long double versions have only double precision:
|
Chris@16
|
21 //
|
Chris@16
|
22 // #define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
|
Chris@16
|
23 //
|
Chris@16
|
24 // Performance tuning options:
|
Chris@16
|
25 //
|
Chris@16
|
26 // #define BOOST_MATH_POLY_METHOD 3
|
Chris@16
|
27 // #define BOOST_MATH_RATIONAL_METHOD 3
|
Chris@16
|
28 //
|
Chris@16
|
29 // The maximum order of polynomial that will be evaluated
|
Chris@16
|
30 // via an unrolled specialisation:
|
Chris@16
|
31 //
|
Chris@16
|
32 // #define BOOST_MATH_MAX_POLY_ORDER 17
|
Chris@16
|
33 //
|
Chris@16
|
34 // decide whether to store constants as integers or reals:
|
Chris@16
|
35 //
|
Chris@16
|
36 // #define BOOST_MATH_INT_TABLE_TYPE(RT, IT) IT
|
Chris@16
|
37
|
Chris@16
|
38 //
|
Chris@16
|
39 // Default policies follow:
|
Chris@16
|
40 //
|
Chris@16
|
41 // Domain errors:
|
Chris@16
|
42 //
|
Chris@16
|
43 // #define BOOST_MATH_DOMAIN_ERROR_POLICY throw_on_error
|
Chris@16
|
44 //
|
Chris@16
|
45 // Pole errors:
|
Chris@16
|
46 //
|
Chris@16
|
47 // #define BOOST_MATH_POLE_ERROR_POLICY throw_on_error
|
Chris@16
|
48 //
|
Chris@16
|
49 // Overflow Errors:
|
Chris@16
|
50 //
|
Chris@16
|
51 // #define BOOST_MATH_OVERFLOW_ERROR_POLICY throw_on_error
|
Chris@16
|
52 //
|
Chris@16
|
53 // Internal Evaluation Errors:
|
Chris@16
|
54 //
|
Chris@16
|
55 // #define BOOST_MATH_EVALUATION_ERROR_POLICY throw_on_error
|
Chris@16
|
56 //
|
Chris@16
|
57 // Underfow:
|
Chris@16
|
58 //
|
Chris@16
|
59 // #define BOOST_MATH_UNDERFLOW_ERROR_POLICY ignore_error
|
Chris@16
|
60 //
|
Chris@16
|
61 // Denorms:
|
Chris@16
|
62 //
|
Chris@16
|
63 // #define BOOST_MATH_DENORM_ERROR_POLICY ignore_error
|
Chris@16
|
64 //
|
Chris@16
|
65 // Max digits to use for internal calculations:
|
Chris@16
|
66 //
|
Chris@16
|
67 // #define BOOST_MATH_DIGITS10_POLICY 0
|
Chris@16
|
68 //
|
Chris@16
|
69 // Promote floats to doubles internally?
|
Chris@16
|
70 //
|
Chris@16
|
71 // #define BOOST_MATH_PROMOTE_FLOAT_POLICY true
|
Chris@16
|
72 //
|
Chris@16
|
73 // Promote doubles to long double internally:
|
Chris@16
|
74 //
|
Chris@16
|
75 // #define BOOST_MATH_PROMOTE_DOUBLE_POLICY true
|
Chris@16
|
76 //
|
Chris@16
|
77 // What do discrete quantiles return?
|
Chris@16
|
78 //
|
Chris@16
|
79 // #define BOOST_MATH_DISCRETE_QUANTILE_POLICY integer_round_outwards
|
Chris@16
|
80 //
|
Chris@16
|
81 // If a function is mathematically undefined
|
Chris@16
|
82 // (for example the Cauchy distribution has no mean),
|
Chris@16
|
83 // then do we stop the code from compiling?
|
Chris@16
|
84 //
|
Chris@16
|
85 // #define BOOST_MATH_ASSERT_UNDEFINED_POLICY true
|
Chris@16
|
86 //
|
Chris@16
|
87 // Maximum series iterstions permitted:
|
Chris@16
|
88 //
|
Chris@16
|
89 // #define BOOST_MATH_MAX_SERIES_ITERATION_POLICY 1000000
|
Chris@16
|
90 //
|
Chris@16
|
91 // Maximum root finding steps permitted:
|
Chris@16
|
92 //
|
Chris@16
|
93 // define BOOST_MATH_MAX_ROOT_ITERATION_POLICY 200
|
Chris@101
|
94 //
|
Chris@101
|
95 // Enable use of __float128 in numeric constants:
|
Chris@101
|
96 //
|
Chris@101
|
97 // #define BOOST_MATH_USE_FLOAT128
|
Chris@101
|
98 //
|
Chris@101
|
99 // Disable use of __float128 in numeric_constants even if the compiler looks to support it:
|
Chris@101
|
100 //
|
Chris@101
|
101 // #define BOOST_MATH_DISABLE_FLOAT128
|
Chris@16
|
102
|
Chris@16
|
103 #endif // BOOST_MATH_TOOLS_USER_HPP
|
Chris@16
|
104
|
Chris@16
|
105
|