1 #include <test/unit/math/test_ad.hpp>
2 
TEST(mathMixScalFun,multinomialLogit)3 TEST(mathMixScalFun, multinomialLogit) {
4   std::vector<int> ns{0, 1, 2, 3};
5   Eigen::VectorXd beta(4);
6   beta << 0.1, 0.1, 0.5, 0.3;
7 
8   auto f = [&ns](const auto& b) {
9     return stan::math::multinomial_logit_lpmf(ns, b);
10   };
11 
12   stan::test::expect_ad(f, beta);
13 }
14