Boost logo

Boost-Commit :

From: johnmaddock_at_[hidden]
Date: 2007-07-21 08:35:41


Author: johnmaddock
Date: 2007-07-21 08:35:40 EDT (Sat, 21 Jul 2007)
New Revision: 7497
URL: http://svn.boost.org/trac/boost/changeset/7497

Log:
Updated config to include user-settable macros in user.hpp.

Added:
   sandbox/math_toolkit/policy/boost/math/tools/user.hpp
Text files modified:
   sandbox/math_toolkit/policy/boost/math/tools/config.hpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: sandbox/math_toolkit/policy/boost/math/tools/config.hpp
==============================================================================
--- sandbox/math_toolkit/policy/boost/math/tools/config.hpp (original)
+++ sandbox/math_toolkit/policy/boost/math/tools/config.hpp 2007-07-21 08:35:40 EDT (Sat, 21 Jul 2007)
@@ -5,6 +5,8 @@
 #include <boost/config.hpp>
 #include <algorithm> // for min and max
 
+#include <boost/math/tools/user.hpp>
+
 #define BOOST_MATH_MAX_ITER 1000000
 
 #if defined(__CYGWIN__) || defined(__FreeBSD__)
@@ -107,3 +109,4 @@
 #endif // BOOST_MATH_TOOLS_CONFIG_HPP
 
 
+

Added: sandbox/math_toolkit/policy/boost/math/tools/user.hpp
==============================================================================
--- (empty file)
+++ sandbox/math_toolkit/policy/boost/math/tools/user.hpp 2007-07-21 08:35:40 EDT (Sat, 21 Jul 2007)
@@ -0,0 +1,79 @@
+
+
+#ifndef BOOST_MATH_TOOLS_USER_HPP
+#define BOOST_MATH_TOOLS_USER_HPP
+
+//
+// The maximum number of iterations in series evaluations etc:
+//
+// #define BOOST_MATH_MAX_ITER 1000000
+//
+// define this if the platform has no long double functions,
+// or if the long double versions have only double precision:
+//
+// #define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+//
+// Performance tuning options:
+//
+// #define BOOST_MATH_POLY_METHOD 3
+// #define BOOST_MATH_RATIONAL_METHOD 3
+//
+// The maximum order of polynomial that will be evaluated
+// via an unrolled specialisation:
+//
+// #define BOOST_MATH_MAX_POLY_ORDER 17
+//
+// decide whether to store constants as integers or reals:
+//
+// #define BOOST_MATH_INT_TABLE_TYPE(RT, IT) IT
+
+//
+// Default policies follow:
+//
+// Domain errors:
+//
+// #define BOOST_MATH_DOMAIN_ERROR_POLICY throw_on_error
+//
+// Pole errors:
+//
+// #define BOOST_MATH_POLE_ERROR_POLICY throw_on_error
+//
+// Overflow Errors:
+//
+// #define BOOST_MATH_OVERFLOW_ERROR_POLICY throw_on_error
+//
+// Internal Evaluation Errors:
+//
+// #define BOOST_MATH_EVALUATION_ERROR_POLICY throw_on_error
+//
+// Underfow:
+//
+// #define BOOST_MATH_UNDERFLOW_ERROR_POLICY ignore_error
+//
+// Denorms:
+//
+// #define BOOST_MATH_DENORM_ERROR_POLICY ignore_error
+//
+// Max digits to use for internal calculations:
+//
+// #define BOOST_MATH_DIGITS10_POLICY 0
+//
+// Promote floats to doubles internally?
+//
+// #define BOOST_MATH_PROMOTE_FLOAT_POLICY true
+//
+// Promote doubles to long double internally:
+//
+// #define BOOST_MATH_PROMOTE_DOUBLE_POLICY true
+//
+// What do discrete quantiles return?
+//
+// #define BOOST_MATH_DISCRETE_QUANTILE_POLICY integer_outside
+//
+// If a function is mathemematically undefined (for example the Cauchy
+// distribution has no mean), then do we stop the code from compiling?
+//
+// #define BOOST_MATH_ASSERT_UNDEFINED_POLICY true
+
+#endif // BOOST_MATH_TOOLS_USER_HPP
+


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