Skip to content

Commit 1913a45

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent ce7af32 commit 1913a45

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

stan/math/prim/fun/as_array_or_scalar.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ template <typename T, require_std_vector_t<T>* = nullptr,
6969
inline auto as_array_or_scalar(T&& v) {
7070
using arr_t = Eigen::Array<value_type_t<T>, Eigen::Dynamic, 1>;
7171
using T_map = Eigen::Map<const arr_t>;
72-
return make_holder([](auto&& x) { return T_map(x.data(), x.size()).matrix().array(); },
73-
std::forward<T>(v));
72+
return make_holder(
73+
[](auto&& x) { return T_map(x.data(), x.size()).matrix().array(); },
74+
std::forward<T>(v));
7475
}
7576

7677
/**

stan/math/prim/fun/as_column_vector_or_scalar.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ inline auto as_column_vector_or_scalar(T&& a) {
8383
const plain_vector, plain_vector>;
8484

8585
using T_map = Eigen::Map<optionally_const_vector>;
86-
return make_holder([](auto&& x) { return T_map(x.data(), x.size()).array().matrix(); },
87-
std::forward<T>(a));
86+
return make_holder(
87+
[](auto&& x) { return T_map(x.data(), x.size()).array().matrix(); },
88+
std::forward<T>(a));
8889
}
8990

9091
} // namespace math

0 commit comments

Comments
 (0)