Skip to content

Commit

Permalink
cpplint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Aug 7, 2023
1 parent e3cb963 commit 051bd8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion stan/math/fwd/functor/integrate_1d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ inline return_type_t<T_a, T_b, Args...> integrate_1d_impl(
// for which tangents are needed
auto a_val = value_of(a);
auto b_val = value_of(b);
auto func = [f,msgs,relative_tolerance,a_val,b_val](const auto&... args_var) {
auto func
= [f, msgs, relative_tolerance, a_val, b_val](const auto&... args_var) {
return integrate_1d_impl(f, a_val, b_val, relative_tolerance, msgs,
args_var...);
};
Expand Down
4 changes: 3 additions & 1 deletion stan/math/prim/functor/finite_diff_gradient_auto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ namespace math {
* @param[out] grad_fx gradient of function at argument
*/
template <typename F, typename ScalarT>
void finite_diff_gradient_auto(const F& f, const Eigen::Matrix<ScalarT, -1, 1>& x, ScalarT& fx,
void finite_diff_gradient_auto(const F& f,
const Eigen::Matrix<ScalarT, -1, 1>& x,
ScalarT& fx,
Eigen::Matrix<ScalarT, -1, 1>& grad_fx) {
Eigen::Matrix<ScalarT, -1, 1> x_temp(x);
fx = f(x);
Expand Down

0 comments on commit 051bd8d

Please sign in to comment.