@@ -22,27 +22,14 @@ namespace math {
2222 * To sample the "original" theta's, set pred_tuple = train_tuple.
2323 * @tparam LLFunc Type of likelihood function.
2424 * @tparam LLArgs Tuple of arguments types of likelihood function.
25- * @tparam ThetaVec A type inheriting from `Eigen::EigenBase` with dynamic
26- * sized rows and 1 column.
27- * @tparam CovarFun A functor with an
28- * `operator()(CovarArgsElements..., {TrainTupleElements...|
29- PredTupleElements...})`
30- * method. The `operator()` method should accept as arguments the
31- * inner elements of `CovarArgs`. The return type of the `operator()` method
32- * should be a type inheriting from `Eigen::EigenBase` with dynamic sized
33- * rows and columns.
25+ * \laplace_common_template_args
3426 * @tparam RNG A valid boost rng type
35- * @tparam CovarArgs A tuple of types to passed as the first arguments of
36- `CovarFun::operator()`
3727 * @param ll_fun Likelihood function.
3828 * @param ll_args Arguments for likelihood function.
39- * @param theta_0 Initial guess for finding the mode of the conditional
40- pi(theta_pred | y, phi, x_pred).
41- * @param covariance_function Covariance function.
42- * @param covar_args Observed/training covariates for covariance function.
29+ * \laplace_common_args
4330 * @param options Control parameter for optimizer underlying Laplace approx.
44- * @param rng Rng number.
45- * @param msgs Stream for function prints.
31+ * \rng_arg
32+ * \msg_arg
4633 */
4734template <
4835 typename LLFunc, typename LLArgs, typename ThetaVec, typename CovarFun,
@@ -54,7 +41,7 @@ inline Eigen::VectorXd laplace_base_rng(LLFunc&& ll_fun, LLArgs&& ll_args,
5441 CovarArgs&& covar_args,
5542 const laplace_options& options,
5643 RNG& rng, std::ostream* msgs) {
57- auto md_est = laplace_marginal_density_est (
44+ auto md_est = internal:: laplace_marginal_density_est (
5845 ll_fun, std::forward<LLArgs>(ll_args), std::forward<ThetaVec>(theta_0),
5946 std::forward<CovarFun>(covariance_function),
6047 to_ref (std::forward<CovarArgs>(covar_args)), options, msgs);
0 commit comments