Stan Math Library  2.15.0
reverse mode automatic differentiation
log1p.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LOG1P_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_LOG1P_HPP
3 
5 #include <boost/math/special_functions/log1p.hpp>
6 
7 namespace stan {
8  namespace math {
9 
25  inline double log1p(double x) {
27  }
28 
38  inline double log1p(int x) {
39  return log1p(static_cast<double>(x));
40  }
41 
42  }
43 }
44 #endif
var log1p(const var &a)
The log (1 + x) function for variables (C99).
Definition: log1p.hpp:32
fvar< T > log1p(const fvar< T > &x)
Definition: log1p.hpp:11
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_policy_t
Boost policy that overrides the defaults to match the built-in C++ standard library functions...

     [ Stan Home Page ] © 2011–2016, Stan Development Team.