Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 ThetaVec,
33 typename CovarFun, typename CovarArgs, typename RNG>
35 LLFunc&& L_f, LLArgs&& ll_args, CovarFun&& covariance_function,
36 CovarArgs&& covar_args, ThetaVec&& theta_0, const double tolerance,
37 const int max_num_steps, const int hessian_block_size, const int solver,
38 const int max_steps_line_search, RNG& rng, std::ostream* msgs) {
40 hessian_block_size, solver, max_steps_line_search,
41 tolerance, max_num_steps, value_of(theta_0)};
42 return laplace_base_rng(std::forward<LLFunc>(L_f),
43 std::forward<LLArgs>(ll_args),
44 std::forward<CovarFun>(covariance_function),
45 std::forward<CovarArgs>(covar_args), ops, rng, msgs);
46}
47
66template <typename LLFunc, typename LLArgs, typename CovarFun,
67 typename CovarArgs, typename RNG>
68inline auto laplace_latent_rng(LLFunc&& L_f, LLArgs&& ll_args,
69 CovarFun&& covariance_function,
70 CovarArgs&& covar_args, RNG& rng,
71 std::ostream* msgs) {
72 return laplace_base_rng(std::forward<LLFunc>(L_f),
73 std::forward<LLArgs>(ll_args),
74 std::forward<CovarFun>(covariance_function),
75 std::forward<CovarArgs>(covar_args),
76 laplace_options_default{}, rng, msgs);
77}
78
79} // namespace math
80} // namespace stan
81
82#endif
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,.
T value_of(const fvar< T > &v)
Return the value of the specified variable.
Definition value_of.hpp:18
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,.
auto laplace_latent_tol_rng(LLFunc &&L_f, LLArgs &&ll_args, CovarFun &&covariance_function, CovarArgs &&covar_args, ThetaVec &&theta_0, const double tolerance, const int max_num_steps, const int hessian_block_size, const int solver, const int max_steps_line_search, 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 ...