Stan Math Library  2.12.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 
4 #include <boost/math/special_functions/gamma.hpp>
5 
6 namespace stan {
7  namespace math {
8 
30  inline double lgamma(double x) {
31  return boost::math::lgamma(x);
32  }
33 
34  }
35 }
36 #endif
fvar< T > lgamma(const fvar< T > &x)
Definition: lgamma.hpp:14
var lgamma(const var &a)
The log gamma function for variables (C99).
Definition: lgamma.hpp:35

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