1#ifndef STAN_MATH_MIX_PROB_LAPLACE_LATENT_NEG_BINOMIAL_2_LOG_RNG_HPP
2#define STAN_MATH_MIX_PROB_LAPLACE_LATENT_NEG_BINOMIAL_2_LOG_RNG_HPP
38template <
typename Eta,
typename Mean,
typename CovarFun,
typename CovarArgs,
39 typename OpsTuple,
typename RNG>
41 const std::vector<int>& y,
const std::vector<int>& y_index, Eta&& eta,
42 Mean&&
mean, CovarFun&& covariance_function, CovarArgs&& covar_args,
43 OpsTuple&& ops, RNG& rng, std::ostream* msgs) {
46 std::forward_as_tuple(std::forward<Eta>(eta), y, y_index,
47 std::forward<Mean>(
mean)),
48 std::forward<CovarFun>(covariance_function),
49 std::forward<CovarArgs>(covar_args),
78template <
typename Eta,
typename Mean,
typename CovarFun,
typename CovarArgs,
81 const std::vector<int>& y,
const std::vector<int>& y_index, Eta&& eta,
82 Mean&&
mean, CovarFun&& covariance_function, CovarArgs&& covar_args,
83 RNG& rng, std::ostream* msgs) {
86 std::forward_as_tuple(std::forward<Eta>(eta), y, y_index,
87 std::forward<Mean>(
mean)),
88 std::forward<CovarFun>(covariance_function),
constexpr auto tuple_to_laplace_options(Options &&ops)
scalar_type_t< T > mean(const T &m)
Returns the sample mean (i.e., average) of the coefficients in the specified std vector,...
Eigen::VectorXd laplace_base_rng(LLFunc &&ll_fun, LLArgs &&ll_args, CovarFun &&covariance_function, CovarArgs &&covar_args, const laplace_options< InitTheta > &options, RNG &rng, std::ostream *msgs)
In a latent gaussian model,.
Eigen::VectorXd laplace_latent_tol_neg_binomial_2_log_rng(const std::vector< int > &y, const std::vector< int > &y_index, Eta &&eta, Mean &&mean, CovarFun &&covariance_function, CovarArgs &&covar_args, OpsTuple &&ops, RNG &rng, std::ostream *msgs)
In a latent gaussian model,.
Eigen::VectorXd laplace_latent_neg_binomial_2_log_rng(const std::vector< int > &y, const std::vector< int > &y_index, Eta &&eta, Mean &&mean, CovarFun &&covariance_function, CovarArgs &&covar_args, RNG &rng, std::ostream *msgs)
In a latent gaussian model,.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...