Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
opSimulation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
Eclipse openpass
opSimulation
Merge requests
!217
Cleanup stochastics implementation header
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Cleanup stochastics implementation header
261-stochastics-boost
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Raghunandan Netrapalli Madhusudhan
requested to merge
261-stochastics-boost
into
develop
10 months ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
Fixes
#261 (moved)
Edited
10 months ago
by
Reinhard Biegel
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
898c37ad
1 commit,
10 months ago
2 files
+
18
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
sim/src/core/opSimulation/modules/Stochastics/stochastics_implementation.cpp
+
17
−
0
Options
@@ -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