Skip to content
Snippets Groups Projects

Cleanup stochastics implementation header

Merged Raghunandan Netrapalli Madhusudhan requested to merge 261-stochastics-boost into develop
2 files
+ 18
10
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -16,8 +16,25 @@
/** @file stochastics_implementation.cpp */
//-----------------------------------------------------------------------------
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
/// \brief prevents any long double functions from being defined or used with Boost.Math
/// this will reduce precision slightly, but will typically improve performance on 64-bit hardware
/// \remark make valgrind working if opimization is set by compiler flags -O2, -O3, or -Og
/// \sa https://svn.boost.org/trac10/ticket/10005
#define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
#endif
#ifndef BOOST_MATH_PROMOTE_DOUBLE_POLICY
/// Don't use long double in boost math
///
/// From boost doc: Determines whether double types get promoted to long double internally to ensure maximum precision
/// in the result, defaults to true, but can be set to false to turn promotion of double's off.
#define BOOST_MATH_PROMOTE_DOUBLE_POLICY false
#endif
#include "stochastics_implementation.h"
#include <boost/math/distributions/lognormal.hpp>
#include <cmath>
#include <stdexcept>
Loading