Automatic Differentiation
 
Loading...
Searching...
No Matches
multinomial_log.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_PROB_MULTINOMIAL_LOG_HPP
2#define STAN_MATH_PRIM_PROB_MULTINOMIAL_LOG_HPP
3
7#include <vector>
8
9namespace stan {
10namespace math {
11
15template <bool propto, typename T_prob>
16return_type_t<T_prob> multinomial_log(const std::vector<int>& ns,
17 const T_prob& theta) {
18 return multinomial_lpmf<propto>(ns, theta);
19}
20
24template <typename T_prob>
25return_type_t<T_prob> multinomial_log(const std::vector<int>& ns,
26 const T_prob& theta) {
27 return multinomial_lpmf<false>(ns, theta);
28}
29
30} // namespace math
31} // namespace stan
32#endif
return_type_t< T_prob > multinomial_log(const std::vector< int > &ns, const T_prob &theta)
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 ...
Definition fvar.hpp:9