Stan Math Library  2.15.0
reverse mode automatic differentiation
neg_binomial_2_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_PROB_NEG_BINOMIAL_2_LOG_HPP
2 #define STAN_MATH_PRIM_SCAL_PROB_NEG_BINOMIAL_2_LOG_HPP
3 
6 
7 namespace stan {
8  namespace math {
9 
13  template <bool propto,
14  typename T_n,
15  typename T_location, typename T_precision>
17  neg_binomial_2_log(const T_n& n,
18  const T_location& mu,
19  const T_precision& phi) {
20  return neg_binomial_2_lpmf<propto, T_n,
21  T_location, T_precision>(n, mu, phi);
22  }
23 
27  template <typename T_n,
28  typename T_location, typename T_precision>
29  inline
31  neg_binomial_2_log(const T_n& n,
32  const T_location& mu,
33  const T_precision& phi) {
34  return neg_binomial_2_lpmf<T_n, T_location, T_precision>(n, mu, phi);
35  }
36 
37  }
38 }
39 #endif
return_type< T_location, T_precision >::type neg_binomial_2_lpmf(const T_n &n, const T_location &mu, const T_precision &phi)
boost::math::tools::promote_args< typename scalar_type< T1 >::type, typename scalar_type< T2 >::type, typename scalar_type< T3 >::type, typename scalar_type< T4 >::type, typename scalar_type< T5 >::type, typename scalar_type< T6 >::type >::type type
Definition: return_type.hpp:27
return_type< T_location, T_precision >::type neg_binomial_2_log(const T_n &n, const T_location &mu, const T_precision &phi)

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