|
5 | 5 | #include <string> |
6 | 6 | #include <vector> |
7 | 7 |
|
| 8 | +using stan::math::multinomial_logit_lpmf; |
| 9 | + |
8 | 10 | template <typename T_prob> |
9 | 11 | void expect_propto(std::vector<int>& ns1, T_prob beta1, std::vector<int>& ns2, |
10 | 12 | T_prob beta2, std::string message) { |
11 | | - expect_eq_diffs(stan::math::multinomial_logit_lpmf<false>(ns1, beta1), |
12 | | - stan::math::multinomial_logit_lpmf<false>(ns2, beta2), |
13 | | - stan::math::multinomial_logit_lpmf<true>(ns1, beta1), |
14 | | - stan::math::multinomial_logit_lpmf<true>(ns2, beta2), message); |
| 13 | + expect_eq_diffs(multinomial_logit_lpmf<false>(ns1, beta1), |
| 14 | + multinomial_logit_lpmf<false>(ns2, beta2), |
| 15 | + multinomial_logit_lpmf<true>(ns1, beta1), |
| 16 | + multinomial_logit_lpmf<true>(ns2, beta2), message); |
15 | 17 | } |
16 | 18 |
|
17 | 19 | using Eigen::Dynamic; |
@@ -39,6 +41,6 @@ TEST(AgradDistributionsMultinomialLogit, check_varis_on_stack) { |
39 | 41 | Matrix<var, Dynamic, 1> beta(3, 1); |
40 | 42 | beta << log(0.3), log(0.5), log(0.2); |
41 | 43 |
|
42 | | - test::check_varis_on_stack(stan::math::multinomial_logit_lpmf<false>(ns, beta)); |
43 | | - test::check_varis_on_stack(stan::math::multinomial_logit_lpmf<true>(ns, beta)); |
| 44 | + test::check_varis_on_stack(multinomial_logit_lpmf<false>(ns, beta)); |
| 45 | + test::check_varis_on_stack(multinomial_logit_lpmf<true>(ns, beta)); |
44 | 46 | } |
0 commit comments