You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stan/math/mix/functor/wolfe_line_search.hpp
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -551,20 +551,22 @@ struct WolfeInfo {
551
551
*
552
552
* @tparam Update Callable that performs one evaluation step. Must accept 4
553
553
* arguments.
554
+
* @tparam Proposal Proposed step type passed to `update`.
554
555
* @tparam Curr Current state type passed to `update`.
555
556
* @tparam Prev Previous state type passed to `update`.
556
557
* @tparam Eval Evaluation record containing alpha/obj/dir.
557
558
* @tparam P Search direction type passed to `update`.
558
559
* @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`.
560
561
*
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.
568
570
*
569
571
* @return For void updates, returns void. Otherwise returns the value from the
0 commit comments