Automatic Differentiation
 
Loading...
Searching...
No Matches
categorical_log.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_PROB_CATEGORICAL_LOG_HPP
2#define STAN_MATH_PRIM_PROB_CATEGORICAL_LOG_HPP
3
7#include <vector>
8
9namespace stan {
10namespace math {
11
15template <bool propto, typename T_n, typename T_prob>
17 const T_prob& theta) {
18 return categorical_lpmf<propto>(ns, theta);
19}
20
24template <typename T_n, typename T_prob>
26 const T_prob& theta) {
27 return categorical_lpmf(ns, theta);
28}
29
30} // namespace math
31} // namespace stan
32#endif
return_type_t< T_prob > categorical_log(const T_n &ns, const T_prob &theta)
typename return_type< Ts... >::type return_type_t
Convenience type for the return type of the specified template parameters.
return_type_t< T_prob > categorical_lpmf(int n, const T_prob &theta)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9