| Stan Math Library 2.6.3 probability, sampling & optimization

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
log_falling_factorial.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LOG_FALLING_FACTORIAL_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_LOG_FALLING_FACTORIAL_HPP
3
4 #include <stan/math/prim/scal/fun/lgamma.hpp>
5
6 namespace stan {
7 namespace math {
8
39 template<typename T1, typename T2>
40 inline typename boost::math::tools::promote_args<T1, T2>::type
41 log_falling_factorial(const T1 x, const T2 n) {
42 return lgamma(x + 1) - lgamma(n + 1);
43 }
44
45 }
46 }
47
48 #endif
lgamma.hpp
stan::math::log_falling_factorial
fvar< T > log_falling_factorial(const fvar< T > &x, const fvar< T > &n)
Definition: log_falling_factorial.hpp:15
stan::math::lgamma
fvar< T > lgamma(const fvar< T > &x)
Definition: lgamma.hpp:15

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