Automatic Differentiation
 
Loading...
Searching...
No Matches
laplace_latent_rng.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_MIX_PROB_LAPLACE_LATENT_RNG_HPP
2#define STAN_MATH_MIX_PROB_LAPLACE_LATENT_RNG_HPP
3
7
8namespace stan {
9namespace math {
10
32template <typename LLFunc, typename LLArgs, typename CovarFun,
33 typename CovarArgs, typename OpsTuple, typename RNG>
34inline auto laplace_latent_tol_rng(LLFunc&& L_f, LLArgs&& ll_args,
35 CovarFun&& covariance_function,
36 CovarArgs&& covar_args, OpsTuple&& ops,
37 RNG& rng, std::ostream* msgs) {
38 return laplace_base_rng(
39 std::forward<LLFunc>(L_f), std::forward<LLArgs>(ll_args),
40 std::forward<CovarFun>(covariance_function),
41 std::forward<CovarArgs>(covar_args),
42 internal::tuple_to_laplace_options(std::forward<OpsTuple>(ops)), rng,
43 msgs);
44}
45
64template <typename LLFunc, typename LLArgs, typename CovarFun,
65 typename CovarArgs, typename RNG>
66inline auto laplace_latent_rng(LLFunc&& L_f, LLArgs&& ll_args,
67 CovarFun&& covariance_function,
68 CovarArgs&& covar_args, RNG& rng,
69 std::ostream* msgs) {
70 return laplace_base_rng(std::forward<LLFunc>(L_f),
71 std::forward<LLArgs>(ll_args),
72 std::forward<CovarFun>(covariance_function),
73 std::forward<CovarArgs>(covar_args),
74 laplace_options_default{}, rng, msgs);
75}
76
77} // namespace math
78} // namespace stan
79
80#endif
constexpr auto tuple_to_laplace_options(Options &&ops)
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,.
auto laplace_latent_tol_rng(LLFunc &&L_f, LLArgs &&ll_args, CovarFun &&covariance_function, CovarArgs &&covar_args, OpsTuple &&ops, RNG &rng, std::ostream *msgs)
In a latent gaussian model,.
auto laplace_latent_rng(LLFunc &&L_f, LLArgs &&ll_args, 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 ...