Stan
2.5.0
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
stan
math
functions
log_rising_factorial.hpp
Go to the documentation of this file.
1
#ifndef STAN__MATH__FUNCTIONS__LOG_RISING_FACTORIAL_HPP
2
#define STAN__MATH__FUNCTIONS__LOG_RISING_FACTORIAL_HPP
3
4
#include <boost/math/special_functions/gamma.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_rising_factorial
(
const
T1 x,
const
T2 n) {
42
using
boost::math::lgamma
;
43
return
lgamma
(x + n) -
lgamma
(x);
44
}
45
46
}
47
}
48
49
#endif
stan::agrad::lgamma
fvar< T > lgamma(const fvar< T > &x)
Definition:
lgamma.hpp:15
stan::math::log_rising_factorial
boost::math::tools::promote_args< T1, T2 >::type log_rising_factorial(const T1 x, const T2 n)
Definition:
log_rising_factorial.hpp:41
stan::math::lgamma
double lgamma(double x)
Definition:
lgamma.hpp:31
[
Stan Home Page
]
© 2011–2014, Stan Development Team.