Skip to content

Commit 1dc5209

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/feature/inbedded-expression-tests' into feature/inbedded-expression-tests
2 parents 817f4f3 + 7c4372c commit 1dc5209

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

test/unit/math/expr_tests.hpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ constexpr const char*
7272
*/
7373
template <typename ScalarType, std::size_t N>
7474
inline void expect_all_used_only_once(std::array<int, N>& arg_evals,
75-
std::array<int, N>& size_of_arg) {
75+
std::array<int, N>& size_of_arg) {
7676
for (int i = 0; i < N; ++i) {
7777
EXPECT_LE(arg_evals[i], size_of_arg[i])
7878
<< "(" << char_scalar_type<ScalarType>::scalar << ")"
@@ -129,7 +129,8 @@ inline constexpr auto make_expr(int& /* count */, T&& arg) {
129129
* `counterOp`.
130130
*/
131131
template <std::size_t N, typename... Args>
132-
inline constexpr auto make_expr_args(std::array<int, N>& expr_evals, Args&&... args) {
132+
inline constexpr auto make_expr_args(std::array<int, N>& expr_evals,
133+
Args&&... args) {
133134
return stan::math::index_apply<N>([&expr_evals, &args...](auto... Is) {
134135
return std::make_tuple(make_expr(expr_evals[Is], args)...);
135136
});
@@ -161,7 +162,8 @@ inline constexpr Eigen::Index eigen_size(EigMat&& x) {
161162
* an Eigen type then the value is be zero.
162163
*/
163164
template <typename... Args>
164-
inline constexpr std::array<int, sizeof...(Args)> eigen_arg_sizes(Args&&... args) {
165+
inline constexpr std::array<int, sizeof...(Args)> eigen_arg_sizes(
166+
Args&&... args) {
165167
return std::array<int, sizeof...(Args)>{eigen_size(args)...};
166168
}
167169

@@ -246,7 +248,8 @@ inline void check_expr_test(F&& f, Args&&... args) {
246248
stan::math::recover_memory();
247249
}
248250
if constexpr (!ReverseOnly) {
249-
stan::test::internal::check_expr_test<stan::math::fvar<double>>(f, args...);
251+
stan::test::internal::check_expr_test<stan::math::fvar<double>>(f,
252+
args...);
250253
}
251254
} catch (const std::exception& e) {
252255
}

0 commit comments

Comments
 (0)