Automatic Differentiation
 
Loading...
Searching...
No Matches
boost_policy.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_BOOST_POLICY_HPP
2#define STAN_MATH_PRIM_FUN_BOOST_POLICY_HPP
3
5#include <boost/math/policies/policy.hpp>
6
7namespace stan {
8namespace math {
9
24template <int B = 0>
25using boost_policy_t = boost::math::policies::policy<
26 boost::math::policies::overflow_error<
27 boost::math::policies::errno_on_error>,
28 boost::math::policies::pole_error<boost::math::policies::errno_on_error>,
29 boost::math::policies::promote_double<false>,
30 boost::math::policies::digits2<B>>;
31} // namespace math
32} // namespace stan
33#endif
boost::math::policies::policy< boost::math::policies::overflow_error< boost::math::policies::errno_on_error >, boost::math::policies::pole_error< boost::math::policies::errno_on_error >, boost::math::policies::promote_double< false >, boost::math::policies::digits2< B > > boost_policy_t
Boost policy that overrides the defaults to match the built-in C++ standard library functions.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...