All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
lgamma.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_LGAMMA_HPP
#define STAN_MATH_PRIM_SCAL_FUN_LGAMMA_HPP
#include <boost/math/special_functions/gamma.hpp>
namespace stan {
namespace math {
// throws domain_error if x is at pole
double lgamma(double x) {
return boost::math::lgamma(x);
}
}
}
#endif
stan::math::lgamma
fvar< T > lgamma(const fvar< T > &x)
Definition: lgamma.hpp:15
stan::math::lgamma
var lgamma(const stan::math::var &a)
The log gamma function for variables (C99).
Definition: lgamma.hpp:35

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