Skip to content

Commit 880a7d9

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent e09096b commit 880a7d9

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

stan/math/fwd/functor/fvar_finite_diff.hpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,15 @@ auto fvar_finite_diff(const F& func, const TArgs&... args) {
6767
using FvarInnerT = typename FvarT::Scalar;
6868

6969
std::vector<FvarInnerT> serialised_args
70-
= serialize<FvarInnerT>(value_of(args)...);
70+
= serialize<FvarInnerT>(value_of(args)...);
7171

7272
// Create a 'wrapper' functor which will take the flattened column-vector
7373
// and transform it to individual arguments which are passed to the
7474
// user-provided functor
75-
auto serial_functor
76-
= [&](const auto& v) {
77-
auto v_deserializer = to_deserializer(v);
78-
return func(v_deserializer.read(args)...);
79-
};
75+
auto serial_functor = [&](const auto& v) {
76+
auto v_deserializer = to_deserializer(v);
77+
return func(v_deserializer.read(args)...);
78+
};
8079

8180
FvarInnerT rtn_value;
8281
std::vector<FvarInnerT> grad;

stan/math/prim/functor/finite_diff_gradient_auto.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ namespace math {
4848
*/
4949
template <typename F, typename VectorT,
5050
typename ScalarT = return_type_t<VectorT>>
51-
void finite_diff_gradient_auto(const F& f,
52-
const VectorT& x,
53-
ScalarT& fx,
51+
void finite_diff_gradient_auto(const F& f, const VectorT& x, ScalarT& fx,
5452
VectorT& grad_fx) {
5553
VectorT x_temp(x);
5654
fx = f(x);

0 commit comments

Comments
 (0)