Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
scal
fun
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 <
stan/math/prim/meta.hpp
>
5
#include <cmath>
6
7
namespace
stan
{
8
namespace
math {
9
36
inline
double
lgamma
(
double
x) {
return
std::lgamma
(x); }
37
46
inline
double
lgamma
(
int
x) {
return
std::lgamma
(x); }
47
48
}
// namespace math
49
}
// namespace stan
50
#endif
stan::math::lgamma
fvar< T > lgamma(const fvar< T > &x)
Return the natural logarithm of the gamma function applied to the specified argument.
Definition:
lgamma.hpp:21
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
stan::math::lgamma
var lgamma(const var &a)
The log gamma function for variables (C99).
Definition:
lgamma.hpp:30
[
Stan Home Page
]
© 2011–2018, Stan Development Team.