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 Oct 30, 2024
1 parent 99991b6 commit c5ddf3c
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 25 deletions.
4 changes: 2 additions & 2 deletions test/unit/math/rev/prob/categorical2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

template <typename T_prob>
inline void expect_propto_categorical_lpmf(unsigned int n1, T_prob theta1,
unsigned int n2, T_prob theta2,
std::string message) {
unsigned int n2, T_prob theta2,
std::string message) {
expect_eq_diffs(stan::math::categorical_lpmf<false>(n1, theta1),
stan::math::categorical_lpmf<false>(n2, theta2),
stan::math::categorical_lpmf<true>(n1, theta1),
Expand Down
8 changes: 5 additions & 3 deletions test/unit/math/rev/prob/dirichlet2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
#include <string>

template <typename T_prob, typename T_prior_sample_size>
inline void expect_propto_dirichlet_lpdf(T_prob theta, T_prior_sample_size alpha,
T_prob theta2, T_prior_sample_size alpha2,
std::string message) {
inline void expect_propto_dirichlet_lpdf(T_prob theta,
T_prior_sample_size alpha,
T_prob theta2,
T_prior_sample_size alpha2,
std::string message) {
expect_eq_diffs(stan::math::dirichlet_lpdf<false>(theta, alpha),
stan::math::dirichlet_lpdf<false>(theta2, alpha2),
stan::math::dirichlet_lpdf<true>(theta, alpha),
Expand Down
6 changes: 3 additions & 3 deletions test/unit/math/rev/prob/inv_wishart2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#include <string>

template <typename T_y, typename T_dof, typename T_scale>
inline void expect_propto_inv_wishart_lpdf(T_y W1, T_dof nu1, T_scale S1, T_y W2,
T_dof nu2, T_scale S2,
std::string message) {
inline void expect_propto_inv_wishart_lpdf(T_y W1, T_dof nu1, T_scale S1,
T_y W2, T_dof nu2, T_scale S2,
std::string message) {
expect_eq_diffs(stan::math::inv_wishart_lpdf<false>(W1, nu1, S1),
stan::math::inv_wishart_lpdf<false>(W2, nu2, S2),
stan::math::inv_wishart_lpdf<true>(W1, nu1, S1),
Expand Down
4 changes: 2 additions & 2 deletions test/unit/math/rev/prob/multi_gp2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include <string>

template <typename T_y, typename T_scale, typename T_w>
inline void expect_propto(T_y y1, T_scale sigma1, T_w w1, T_y y2, T_scale sigma2,
T_w w2, std::string message = "") {
inline void expect_propto(T_y y1, T_scale sigma1, T_w w1, T_y y2,
T_scale sigma2, T_w w2, std::string message = "") {
expect_eq_diffs(stan::math::multi_gp_lpdf<false>(y1, sigma1, w1),
stan::math::multi_gp_lpdf<false>(y2, sigma2, w2),
stan::math::multi_gp_lpdf<true>(y1, sigma1, w1),
Expand Down
6 changes: 3 additions & 3 deletions test/unit/math/rev/prob/multi_gp_cholesky2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#include <vector>

template <typename T_y, typename T_scale, typename T_w>
inline void expect_propto_multi_gp_cholesky_lpdf(T_y y1, T_scale L1, T_w w1, T_y y2,
T_scale L2, T_w w2,
std::string message = "") {
inline void expect_propto_multi_gp_cholesky_lpdf(T_y y1, T_scale L1, T_w w1,
T_y y2, T_scale L2, T_w w2,
std::string message = "") {
expect_eq_diffs(stan::math::multi_gp_cholesky_lpdf<false>(y1, L1, w1),
stan::math::multi_gp_cholesky_lpdf<false>(y2, L2, w2),
stan::math::multi_gp_cholesky_lpdf<true>(y1, L1, w1),
Expand Down
6 changes: 3 additions & 3 deletions test/unit/math/rev/prob/multi_normal2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#include <string>

template <typename T_y, typename T_loc, typename T_scale>
inline void expect_propto_multi_normal_lpdf(T_y y1, T_loc mu1, T_scale sigma1, T_y y2,
T_loc mu2, T_scale sigma2,
std::string message = "") {
inline void expect_propto_multi_normal_lpdf(T_y y1, T_loc mu1, T_scale sigma1,
T_y y2, T_loc mu2, T_scale sigma2,
std::string message = "") {
expect_eq_diffs(stan::math::multi_normal_lpdf<false>(y1, mu1, sigma1),
stan::math::multi_normal_lpdf<false>(y2, mu2, sigma2),
stan::math::multi_normal_lpdf<true>(y1, mu1, sigma1),
Expand Down
7 changes: 4 additions & 3 deletions test/unit/math/rev/prob/multi_normal_prec2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
#include <string>

template <typename T_y, typename T_loc, typename T_scale>
inline void expect_propto_multi_normal_prec_lpdf(T_y y1, T_loc mu1, T_scale sigma1,
T_y y2, T_loc mu2, T_scale sigma2,
std::string message = "") {
inline void expect_propto_multi_normal_prec_lpdf(T_y y1, T_loc mu1,
T_scale sigma1, T_y y2,
T_loc mu2, T_scale sigma2,
std::string message = "") {
expect_eq_diffs(stan::math::multi_normal_prec_lpdf<false>(y1, mu1, sigma1),
stan::math::multi_normal_prec_lpdf<false>(y2, mu2, sigma2),
stan::math::multi_normal_prec_lpdf<true>(y1, mu1, sigma1),
Expand Down
7 changes: 4 additions & 3 deletions test/unit/math/rev/prob/multi_student_t2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@

template <typename T_y, typename T_dof, typename T_loc, typename T_scale>
inline void expect_propto_multi_student_t_lpdf(T_y y1, T_dof nu1, T_loc mu1,
T_scale sigma1, T_y y2, T_dof nu2,
T_loc mu2, T_scale sigma2,
std::string message = "") {
T_scale sigma1, T_y y2,
T_dof nu2, T_loc mu2,
T_scale sigma2,
std::string message = "") {
expect_eq_diffs(stan::math::multi_student_t_lpdf<false>(y1, nu1, mu1, sigma1),
stan::math::multi_student_t_lpdf<false>(y2, nu2, mu2, sigma2),
stan::math::multi_student_t_lpdf<true>(y1, nu1, mu1, sigma1),
Expand Down
4 changes: 2 additions & 2 deletions test/unit/math/rev/prob/multinomial_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

template <typename T_prob>
inline void expect_propto_multinomial(std::vector<int>& ns1, T_prob theta1,
std::vector<int>& ns2, T_prob theta2,
std::string message) {
std::vector<int>& ns2, T_prob theta2,
std::string message) {
expect_eq_diffs(stan::math::multinomial_lpmf<false>(ns1, theta1),
stan::math::multinomial_lpmf<false>(ns2, theta2),
stan::math::multinomial_lpmf<true>(ns1, theta1),
Expand Down
3 changes: 2 additions & 1 deletion test/unit/math/rev/prob/wishart_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

template <typename T_y, typename T_dof, typename T_scale>
inline void expect_propto_wishart_lpdf(T_y W1, T_dof nu1, T_scale S1, T_y W2,
T_dof nu2, T_scale S2, std::string message) {
T_dof nu2, T_scale S2,
std::string message) {
expect_eq_diffs(stan::math::wishart_lpdf<false>(W1, nu1, S1),
stan::math::wishart_lpdf<false>(W2, nu2, S2),
stan::math::wishart_lpdf<true>(W1, nu1, S1),
Expand Down

0 comments on commit c5ddf3c

Please sign in to comment.