Skip to content

Commit d86fa69

Browse files
committed
update docs
1 parent 7f1a995 commit d86fa69

3 files changed

Lines changed: 20 additions & 16 deletions

File tree

doxygen/doxygen.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2743,7 +2743,7 @@ MSCGEN_TOOL =
27432743
MSCFILE_DIRS =
27442744

27452745
ALIASES += laplace_options="\
2746-
@param[in] ops Options for controlling Laplace approximation. The following options are available: \
2746+
\param[in] ops Options for controlling Laplace approximation. The following options are available: \
27472747
- theta_0 the initial guess for the Laplace approximation. \
27482748
- tolerance controls the convergence criterion when finding the mode in the Laplace approximation. \
27492749
- max_num_steps maximum number of steps before the Newton solver breaks and returns an error. \
@@ -2753,6 +2753,7 @@ ALIASES += laplace_options="\
27532753
2. computes square-root of covariance matrix. \
27542754
3. computes no square-root and uses LU decomposition. \
27552755
- max_steps_line_search Number of steps after which the algorithm gives up on doing a line search. If 0, no linesearch. \
2756+
- allow_fallthrough If true, if solver 1 fails then solver 2 is tried, and if that fails solver 3 is tried. \
27562757
"
27572758

27582759
ALIASES += laplace_common_template_args="\
@@ -2762,7 +2763,7 @@ ALIASES += laplace_common_template_args="\
27622763
should be a type inheriting from `Eigen::EigenBase` with dynamic sized \
27632764
rows and columns. \
27642765
\tparam CovarArgs A tuple of types to passed as the first arguments of `CovarFun::operator()`\
2765-
\tparam OpsTuple A tuple of laplace_options types
2766+
\tparam OpsTuple A tuple of laplace_options types \
27662767
"
27672768

27682769
ALIASES += laplace_common_args="\

stan/math/mix/functor/laplace_marginal_density_estimator.hpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,12 +1083,13 @@ inline auto run_newton_loop(SolverPolicy& solver, NewtonStateT& state,
10831083

10841084
/**
10851085
* @brief Log a solver fallback event to the provided stream.
1086-
* @param msgs Output stream (may be nullptr)
1087-
* @param context Context string for the log
1088-
* @param iter Current iteration number
1089-
* @param failed_solver Name of the solver that failed
1090-
* @param next_solver Name of the solver being attempted next
1091-
* @param e Exception that caused the fallback
1086+
* @param[in] allow_fallthrough If false, throw instead of logging
1087+
* @param[in,out] msgs Output stream (may be nullptr)
1088+
* @param[in] context Context string for the log
1089+
* @param[in] iter Current iteration number
1090+
* @param[in] failed_solver Name of the solver that failed
1091+
* @param[in] next_solver Name of the solver being attempted next
1092+
* @param[in] e Exception that caused the fallback
10921093
*/
10931094
inline void log_solver_fallback(const bool allow_fallthrough,
10941095
std::ostream* msgs, std::string_view context,

stan/math/mix/functor/wolfe_line_search.hpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -551,20 +551,22 @@ struct WolfeInfo {
551551
*
552552
* @tparam Update Callable that performs one evaluation step. Must accept 4
553553
* arguments.
554+
* @tparam Proposal Proposed step type passed to `update`.
554555
* @tparam Curr Current state type passed to `update`.
555556
* @tparam Prev Previous state type passed to `update`.
556557
* @tparam Eval Evaluation record containing alpha/obj/dir.
557558
* @tparam P Search direction type passed to `update`.
558559
* @tparam Backoff Callable that shrinks `eval.alpha()` and returns a bool.
559-
* @tparam IsValid Callable that returns true when the evaluation is valid.
560+
* @tparam IsValid Callable that returns true when the evaluation is valid. When `Update` is non-void, must accept 2 arguments whereh the second argument is the return of `Update`.
560561
*
561-
* @param update Evaluator invoked as `update(curr, prev, eval, p)`.
562-
* @param curr Current state forwarded to `update`.
563-
* @param prev Previous state forwarded to `update`.
564-
* @param eval Evaluation record, updated in-place by `update`.
565-
* @param p Search direction forwarded to `update`.
566-
* @param backoff Shrinks alpha and returns whether another retry should occur.
567-
* @param is_valid Checks whether the evaluation is valid.
562+
* @param[in] update Evaluator invoked as `update(curr, prev, eval, p)`.
563+
* @param[in,out] proposal Proposed step forwarded to `update`.
564+
* @param[in] curr Current state forwarded to `update`.
565+
* @param[in] prev Previous state forwarded to `update`.
566+
* @param[in,out] eval Evaluation record, updated in-place by `update`.
567+
* @param[in] p Search direction forwarded to `update`.
568+
* @param[in] backoff Shrinks alpha and returns whether another retry should occur.
569+
* @param[in] is_valid Checks whether the evaluation is valid.
568570
*
569571
* @return For void updates, returns void. Otherwise returns the value from the
570572
* first valid evaluation.

0 commit comments

Comments
 (0)