1#ifndef STAN_MATH_PRIM_PROB_NEG_BINOMIAL_2_LOG_HPP
2#define STAN_MATH_PRIM_PROB_NEG_BINOMIAL_2_LOG_HPP
13template <
bool propto,
typename T_n,
typename T_location,
typename T_precision>
15 const T_n& n,
const T_location& mu,
const T_precision& phi) {
16 return neg_binomial_2_lpmf<propto, T_n, T_location, T_precision>(n, mu, phi);
22template <
typename T_n,
typename T_location,
typename T_precision>
24 const T_n& n,
const T_location& mu,
const T_precision& phi) {
25 return neg_binomial_2_lpmf<T_n, T_location, T_precision>(n, mu, phi);
return_type_t< T_location, T_precision > neg_binomial_2_log(const T_n &n, const T_location &mu, const T_precision &phi)
typename return_type< Ts... >::type return_type_t
Convenience type for the return type of the specified template parameters.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...