Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-buildbot committed Sep 14, 2023
1 parent a2e32ab commit fa269bb
Show file tree
Hide file tree
Showing 121 changed files with 564 additions and 565 deletions.
2 changes: 1 addition & 1 deletion test/unit/math/mix/core/operator_logical_and_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void test_logical_and(double x, double y) {
EXPECT_EQ(x && y, x && fvar<fvar<var> >(y));
}

TEST_F(mathMix, logical_and) {
TEST_F(mathMix, logical_and) {
std::vector<double> xs;
xs.push_back(6.1);
xs.push_back(6.1);
Expand Down
2 changes: 1 addition & 1 deletion test/unit/math/mix/core/operator_logical_or_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void test_logical_or(double x, double y) {
EXPECT_EQ(x || y, x || fvar<fvar<var> >(y));
}

TEST_F(mathMix, logical_or) {
TEST_F(mathMix, logical_or) {
std::vector<double> xs;
xs.push_back(6.1);
xs.push_back(6.1);
Expand Down
2 changes: 1 addition & 1 deletion test/unit/math/mix/core/operator_unary_not_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void test_unary_not(double x) {
EXPECT_EQ(!x, !fvar<fvar<var> >(x));
}

TEST_F(mathMix, unary_not) {
TEST_F(mathMix, unary_not) {
test_unary_not(6.1);
test_unary_not(0);
test_unary_not(-13.2);
Expand Down
2 changes: 1 addition & 1 deletion test/unit/math/mix/core/std_numeric_limits_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <gtest/gtest.h>
#include <limits>

TEST_F(mathMix, All_Fvar) {
TEST_F(mathMix, All_Fvar) {
using stan::math::fvar;
using stan::math::INFTY;
using stan::math::var;
Expand Down
6 changes: 3 additions & 3 deletions test/unit/math/mix/fun/abs_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <vector>
#include <type_traits>

TEST_F(mathMix, absBasics) {
TEST_F(mathMix, absBasics) {
using stan::math::abs;
int a = abs(1);

Expand All @@ -30,7 +30,7 @@ using is_complex_and_base_ret = stan::bool_constant<
(!stan::is_complex<stan::scalar_type_t<std::decay_t<T1>>>::value)
|| (stan::is_complex<stan::scalar_type_t<std::decay_t<T1>>>::value
&& !stan::is_complex<stan::scalar_type_t<std::decay_t<T2>>>::value)>;
TEST_F(mathMix, abs) {
TEST_F(mathMix, abs) {
auto f = [](const auto& x) {
auto xx = stan::math::abs(x);
static_assert(is_complex_and_base_ret<decltype(x), decltype(xx)>::value,
Expand Down Expand Up @@ -233,7 +233,7 @@ TEST_F(mathMix, abs) {
amc_t q2{k2, k6};
stan::test::expect_ad(f, q2);
}
TEST_F(mathMix, absReturnType) {
TEST_F(mathMix, absReturnType) {
// validate return types not overpromoted to complex by assignability
std::complex<stan::math::var> a = 3;
stan::math::var b = abs(a);
Expand Down
10 changes: 5 additions & 5 deletions test/unit/math/mix/fun/accumulator_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void test_sum(stan::math::accumulator<T>& a, int n) {
EXPECT_TRUE((n * (n + 1)) / 2 == a.sum());
}

TEST_F(mathMix, accumulator_fvar_var) {
TEST_F(mathMix, accumulator_fvar_var) {
using stan::math::accumulator;
using stan::math::fvar;
using stan::math::var;
Expand All @@ -25,7 +25,7 @@ TEST_F(mathMix, accumulator_fvar_var) {
test_sum(a, 1000);
}

TEST_F(mathMix, accumulator_collection_fvar_var) {
TEST_F(mathMix, accumulator_collection_fvar_var) {
using stan::math::accumulator;
using stan::math::fvar;
using stan::math::matrix_fv;
Expand Down Expand Up @@ -85,7 +85,7 @@ TEST_F(mathMix, accumulator_collection_fvar_var) {
test_sum(a, pos - 1);
}

TEST_F(mathMix, accumulator_fvar_fvar_var) {
TEST_F(mathMix, accumulator_fvar_fvar_var) {
using stan::math::accumulator;
using stan::math::fvar;
using stan::math::var;
Expand All @@ -101,7 +101,7 @@ TEST_F(mathMix, accumulator_fvar_fvar_var) {
test_sum(a, 1000);
}

TEST_F(mathMix, accumulator_collection_fvar_fvar_var) {
TEST_F(mathMix, accumulator_collection_fvar_fvar_var) {
using stan::math::accumulator;
using stan::math::fvar;
using stan::math::matrix_ffv;
Expand Down Expand Up @@ -161,7 +161,7 @@ TEST_F(mathMix, accumulator_collection_fvar_fvar_var) {
test_sum(a, pos - 1);
}

TEST_F(mathMix, accumulator_var_matrix) {
TEST_F(mathMix, accumulator_var_matrix) {
auto f = [](const auto& x) {
using x_t = decltype(x);
stan::math::accumulator<stan::scalar_type_t<x_t>> acc;
Expand Down
1 change: 0 additions & 1 deletion test/unit/math/mix/fun/acosh_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ TEST_F(mathMix, acosh_varmat) {
}
expect_ad_vector_matvar(f, A);
}

8 changes: 4 additions & 4 deletions test/unit/math/mix/fun/append_array_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void check() {
}
}

TEST_F(mathMix, append_array_prim) {
TEST_F(mathMix, append_array_prim) {
check<int, int, int>();
check<double, double, double>();
check<double, int, double>();
Expand All @@ -303,7 +303,7 @@ TEST_F(mathMix, append_array_prim) {
check<M, M, M>();
}

TEST_F(mathMix, append_array_rev) {
TEST_F(mathMix, append_array_rev) {
check<int, var, var>();
check<var, int, var>();
check<double, var, var>();
Expand All @@ -320,7 +320,7 @@ TEST_F(mathMix, append_array_rev) {
check<Mv, Mv, Mv>();
}

TEST_F(mathMix, append_array_fwd) {
TEST_F(mathMix, append_array_fwd) {
check<int, fd, fd>();
check<fd, int, fd>();
check<double, fd, fd>();
Expand Down Expand Up @@ -352,7 +352,7 @@ TEST_F(mathMix, append_array_fwd) {
check<Mffd, Mffd, Mffd>();
}

TEST_F(mathMix, append_array_mix) {
TEST_F(mathMix, append_array_mix) {
check<int, fv, fv>();
check<fv, int, fv>();
check<double, fv, fv>();
Expand Down
2 changes: 1 addition & 1 deletion test/unit/math/mix/fun/arg_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <complex>
#include <vector>

TEST_F(mathMix, arg) {
TEST_F(mathMix, arg) {
auto f = [](const auto& x) { return arg(x); };

// undefined with 0 in denominator
Expand Down
4 changes: 2 additions & 2 deletions test/unit/math/mix/fun/array_builder_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <gtest/gtest.h>
#include <vector>

TEST_F(mathMix, array_builder_fvar_var) {
TEST_F(mathMix, array_builder_fvar_var) {
using stan::math::array_builder;
using stan::math::fvar;
using stan::math::var;
Expand Down Expand Up @@ -56,7 +56,7 @@ TEST_F(mathMix, array_builder_fvar_var) {
EXPECT_EQ(4, xx[2][1].d_.val());
}

TEST_F(mathMix, array_builder_fvar_fvar_var) {
TEST_F(mathMix, array_builder_fvar_fvar_var) {
using stan::math::array_builder;
using stan::math::fvar;
using stan::math::var;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/math/mix/fun/asinh_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <complex>
#include <vector>

TEST_F(mathMix, asinh) {
TEST_F(mathMix, asinh) {
auto f = [](const auto& x1) {
using stan::math::asinh;
return asinh(x1);
Expand Down
40 changes: 20 additions & 20 deletions test/unit/math/mix/fun/assign_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <stdexcept>
#include <vector>

TEST_F(mathMix, vector_fvar_var) {
TEST_F(mathMix, vector_fvar_var) {
using stan::math::assign;
using stan::math::fvar;
using stan::math::var;
Expand Down Expand Up @@ -42,7 +42,7 @@ TEST_F(mathMix, vector_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[2]);
}

TEST_F(mathMix, eigen_row_vector_fvar_var_to_fvar_var) {
TEST_F(mathMix, eigen_row_vector_fvar_var_to_fvar_var) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand Down Expand Up @@ -77,7 +77,7 @@ TEST_F(mathMix, eigen_row_vector_fvar_var_to_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[1]);
EXPECT_FLOAT_EQ(0, grads[2]);
}
TEST_F(mathMix, eigen_row_vector_fvar_var_shape_mismatch) {
TEST_F(mathMix, eigen_row_vector_fvar_var_shape_mismatch) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand All @@ -101,7 +101,7 @@ TEST_F(mathMix, eigen_row_vector_fvar_var_shape_mismatch) {
EXPECT_THROW(assign(x, zzz), std::invalid_argument);
}

TEST_F(mathMix, eigen_matrix_fvar_var_to_fvar_var) {
TEST_F(mathMix, eigen_matrix_fvar_var_to_fvar_var) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand Down Expand Up @@ -148,7 +148,7 @@ TEST_F(mathMix, eigen_matrix_fvar_var_to_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[5]);
}

TEST_F(mathMix, eigen_matrix_fvar_var_shape_mismatch) {
TEST_F(mathMix, eigen_matrix_fvar_var_shape_mismatch) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand All @@ -174,7 +174,7 @@ TEST_F(mathMix, eigen_matrix_fvar_var_shape_mismatch) {
EXPECT_THROW(assign(zzz, x), std::invalid_argument);
}

TEST_F(mathMix, block_fvar_var) {
TEST_F(mathMix, block_fvar_var) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand All @@ -194,7 +194,7 @@ TEST_F(mathMix, block_fvar_var) {
EXPECT_FLOAT_EQ(1000.0, m(0, 2).val_.val());
}

TEST_F(mathMix, vector_vector_fvar_var) {
TEST_F(mathMix, vector_vector_fvar_var) {
using stan::math::assign;
using stan::math::fvar;
using stan::math::var;
Expand Down Expand Up @@ -236,7 +236,7 @@ TEST_F(mathMix, vector_vector_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[5]);
}

TEST_F(mathMix, vector_vector_vector_fvar_var) {
TEST_F(mathMix, vector_vector_vector_fvar_var) {
using stan::math::assign;
using stan::math::fvar;
using stan::math::var;
Expand Down Expand Up @@ -276,7 +276,7 @@ TEST_F(mathMix, vector_vector_vector_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[i]);
}

TEST_F(mathMix, vector_eigen_vector_fvar_var) {
TEST_F(mathMix, vector_eigen_vector_fvar_var) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand Down Expand Up @@ -311,7 +311,7 @@ TEST_F(mathMix, vector_eigen_vector_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[i]);
}

TEST_F(mathMix, get_assign_row_fvar_var) {
TEST_F(mathMix, get_assign_row_fvar_var) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand All @@ -331,7 +331,7 @@ TEST_F(mathMix, get_assign_row_fvar_var) {
EXPECT_FLOAT_EQ(1000.0, m(0, 2).val_.val());
}

TEST_F(mathMix, vector_fvar_fvar_var) {
TEST_F(mathMix, vector_fvar_fvar_var) {
using stan::math::assign;
using stan::math::fvar;
using stan::math::var;
Expand Down Expand Up @@ -377,7 +377,7 @@ TEST_F(mathMix, vector_fvar_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[2]);
}

TEST_F(mathMix, eigen_row_vector_fvar_fvar_var_to_fvar_fvar_var) {
TEST_F(mathMix, eigen_row_vector_fvar_fvar_var_to_fvar_fvar_var) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand Down Expand Up @@ -421,7 +421,7 @@ TEST_F(mathMix, eigen_row_vector_fvar_fvar_var_to_fvar_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[2]);
}

TEST_F(mathMix, eigen_row_vector_fvar_fvar_var_shape_mismatch) {
TEST_F(mathMix, eigen_row_vector_fvar_fvar_var_shape_mismatch) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand All @@ -445,7 +445,7 @@ TEST_F(mathMix, eigen_row_vector_fvar_fvar_var_shape_mismatch) {
EXPECT_THROW(assign(x, zzz), std::invalid_argument);
}

TEST_F(mathMix, eigen_matrix_fvar_fvar_var_to_fvar_fvar_var) {
TEST_F(mathMix, eigen_matrix_fvar_fvar_var_to_fvar_fvar_var) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand Down Expand Up @@ -506,7 +506,7 @@ TEST_F(mathMix, eigen_matrix_fvar_fvar_var_to_fvar_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[5]);
}

TEST_F(mathMix, eigen_matrix_fvar_fvar_var_shape_mismatch) {
TEST_F(mathMix, eigen_matrix_fvar_fvar_var_shape_mismatch) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand All @@ -532,7 +532,7 @@ TEST_F(mathMix, eigen_matrix_fvar_fvar_var_shape_mismatch) {
EXPECT_THROW(assign(zzz, x), std::invalid_argument);
}

TEST_F(mathMix, block_fvar_fvar_var) {
TEST_F(mathMix, block_fvar_fvar_var) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand All @@ -552,7 +552,7 @@ TEST_F(mathMix, block_fvar_fvar_var) {
EXPECT_FLOAT_EQ(1000.0, m(0, 2).val_.val_.val());
}

TEST_F(mathMix, vector_vector_fvar_fvar_var) {
TEST_F(mathMix, vector_vector_fvar_fvar_var) {
using stan::math::assign;
using stan::math::fvar;
using stan::math::var;
Expand Down Expand Up @@ -598,7 +598,7 @@ TEST_F(mathMix, vector_vector_fvar_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[5]);
}

TEST_F(mathMix, vector_vector_vector_fvar_fvar_var) {
TEST_F(mathMix, vector_vector_vector_fvar_fvar_var) {
using stan::math::assign;
using stan::math::fvar;
using stan::math::var;
Expand Down Expand Up @@ -642,7 +642,7 @@ TEST_F(mathMix, vector_vector_vector_fvar_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[i]);
}

TEST_F(mathMix, vector_eigen_vector_fvar_fvar_var) {
TEST_F(mathMix, vector_eigen_vector_fvar_fvar_var) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand Down Expand Up @@ -683,7 +683,7 @@ TEST_F(mathMix, vector_eigen_vector_fvar_fvar_var) {
EXPECT_FLOAT_EQ(0, grads[i]);
}

TEST_F(mathMix, get_assign_row_fvar_fvar_var) {
TEST_F(mathMix, get_assign_row_fvar_fvar_var) {
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::assign;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/math/mix/fun/atan2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ TEST_F(mathMix, atan2_nan) {
stan::test::expect_ad(f, 0.5, 2.3);
}

TEST_F(mathMix, atan2) {
TEST_F(mathMix, atan2) {
auto f = [](const auto& x1, const auto& x2) {
using stan::math::atan2;
return atan2(x1, x2);
Expand All @@ -40,7 +40,7 @@ TEST_F(mathMix, atan2) {
stan::test::expect_ad_vectorized_binary(f, in1, in2);
}

TEST_F(mathMix, atan2_varmat) {
TEST_F(mathMix, atan2_varmat) {
auto f = [](const auto& x1, const auto& x2) {
using stan::math::atan2;
return atan2(x1, x2);
Expand Down
Loading

0 comments on commit fa269bb

Please sign in to comment.