Stan Math Library  2.15.0
reverse mode automatic differentiation
lgamma.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LGAMMA_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_LGAMMA_HPP
3 
5 #include <boost/math/special_functions/gamma.hpp>
6 
7 namespace stan {
8  namespace math {
9 
36  inline double lgamma(double x) {
38  }
39 
48  inline double lgamma(int x) {
50  }
51 
52  }
53 }
54 #endif
fvar< T > lgamma(const fvar< T > &x)
Return the natural logarithm of the gamma function applied to the specified argument.
Definition: lgamma.hpp:20
var lgamma(const var &a)
The log gamma function for variables (C99).
Definition: lgamma.hpp:34
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.