Skip to content

Commit

Permalink
cpplint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Jun 18, 2024
1 parent 5c9de1c commit 54a3da2
Show file tree
Hide file tree
Showing 104 changed files with 577 additions and 577 deletions.
12 changes: 6 additions & 6 deletions test/unit/math/opencl/rev/bernoulli_cdf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <test/unit/math/opencl/util.hpp>
#include <vector>

TEST_F(OpenCLRevTests, probdistributionsBernoulliCdf_error_checking) {
TEST_F(OpenCLRevTests, probdistBernoulliCdf_error_checking) {
int N = 3;

std::vector<int> n{1, -2, 11};
Expand Down Expand Up @@ -43,7 +43,7 @@ auto bernoulli_cdf_functor = [](const auto& n, const auto& theta) {
return stan::math::bernoulli_cdf(n, theta);
};

TEST_F(OpenCLRevTests, probdistributionsBernoulliCdf_opencl_matches_cpu_small) {
TEST_F(OpenCLRevTests, probdistBernoulliCdf_opencl_matches_cpu_small) {
int N = 3;
int M = 2;

Expand All @@ -58,7 +58,7 @@ TEST_F(OpenCLRevTests, probdistributionsBernoulliCdf_opencl_matches_cpu_small) {
}

TEST_F(OpenCLRevTests,
probdistributionsBernoulliCdf_opencl_matches_cpu_small_n_negative) {
probdistBernoulliCdf_opencl_matches_cpu_small_n_negative) {
int N = 3;
int M = 2;

Expand All @@ -72,7 +72,7 @@ TEST_F(OpenCLRevTests,
theta.transpose().eval());
}

TEST_F(OpenCLRevTests, probdistributionsBernoulliCdf_opencl_broadcast_n) {
TEST_F(OpenCLRevTests, probdistBernoulliCdf_opencl_broadcast_n) {
int N = 3;

int n_scal = 1;
Expand All @@ -83,7 +83,7 @@ TEST_F(OpenCLRevTests, probdistributionsBernoulliCdf_opencl_broadcast_n) {
n_scal, theta);
}

TEST_F(OpenCLRevTests, probdistributionsBernoulliCdf_opencl_broadcast_theta) {
TEST_F(OpenCLRevTests, probdistBernoulliCdf_opencl_broadcast_theta) {
int N = 3;

std::vector<int> n{0, 1, 0};
Expand All @@ -93,7 +93,7 @@ TEST_F(OpenCLRevTests, probdistributionsBernoulliCdf_opencl_broadcast_theta) {
n, theta_scal);
}

TEST_F(OpenCLRevTests, probdistributionsBernoulliCdf_opencl_matches_cpu_big) {
TEST_F(OpenCLRevTests, probdistBernoulliCdf_opencl_matches_cpu_big) {
int N = 153;

std::vector<int> n(N);
Expand Down
14 changes: 7 additions & 7 deletions test/unit/math/opencl/rev/bernoulli_lccdf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <test/unit/math/opencl/util.hpp>
#include <vector>

TEST_F(OpenCLRevTests, probdistributionsBernoulliLccdf_error_checking) {
TEST_F(OpenCLRevTests, probdistBernoulliLccdf_error_checking) {
int N = 3;

std::vector<int> n{1, -2, 11};
Expand Down Expand Up @@ -44,7 +44,7 @@ auto bernoulli_lccdf_functor = [](const auto& n, const auto& theta) {
};

TEST_F(OpenCLRevTests,
probdistributionsBernoulliLccdf_opencl_matches_cpu_small) {
probdistBernoulliLccdf_opencl_matches_cpu_small) {
int N = 3;
int M = 2;

Expand All @@ -59,7 +59,7 @@ TEST_F(OpenCLRevTests,
}

TEST_F(OpenCLRevTests,
probdistributionsBernoulliLccdf_opencl_matches_cpu_small_n_negative) {
probdistBernoulliLccdf_opencl_matches_cpu_small_n_negative) {
int N = 3;
int M = 2;

Expand All @@ -74,7 +74,7 @@ TEST_F(OpenCLRevTests,
}

TEST_F(OpenCLRevTests,
probdistributionsBernoulliLccdf_opencl_matches_cpu_small_n_over_one) {
probdistBernoulliLccdf_opencl_matches_cpu_small_n_over_one) {
int N = 3;
int M = 2;

Expand All @@ -88,7 +88,7 @@ TEST_F(OpenCLRevTests,
theta.transpose().eval());
}

TEST_F(OpenCLRevTests, probdistributionsBernoulliLccdf_opencl_broadcast_n) {
TEST_F(OpenCLRevTests, probdistBernoulliLccdf_opencl_broadcast_n) {
int N = 3;

int n_scal = 0;
Expand All @@ -99,7 +99,7 @@ TEST_F(OpenCLRevTests, probdistributionsBernoulliLccdf_opencl_broadcast_n) {
bernoulli_lccdf_functor, n_scal, theta);
}

TEST_F(OpenCLRevTests, probdistributionsBernoulliLccdf_opencl_broadcast_theta) {
TEST_F(OpenCLRevTests, probdistBernoulliLccdf_opencl_broadcast_theta) {
int N = 3;

std::vector<int> n{0, 0, 0};
Expand All @@ -109,7 +109,7 @@ TEST_F(OpenCLRevTests, probdistributionsBernoulliLccdf_opencl_broadcast_theta) {
bernoulli_lccdf_functor, n, theta_scal);
}

TEST_F(OpenCLRevTests, probdistributionsBernoulliLccdf_opencl_matches_cpu_big) {
TEST_F(OpenCLRevTests, probdistBernoulliLccdf_opencl_matches_cpu_big) {
int N = 153;

std::vector<int> n(N);
Expand Down
14 changes: 7 additions & 7 deletions test/unit/math/opencl/rev/bernoulli_logit_glm_lpmf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ using stan::math::var;
using stan::test::expect_near_rel;
using std::vector;

TEST_F(OpenCLRevTests, probdistributionsBernoulliLogitGLM_error_checking) {
TEST_F(OpenCLRevTests, probdistBernoulliLogitGLM_error_checking) {
int N = 3;
int M = 2;

Expand Down Expand Up @@ -101,7 +101,7 @@ auto bernoulli_logit_glm_lpmf_functor_propto
};

TEST_F(OpenCLRevTests,
probdistributionsBernoulliLogitGLM_opencl_matches_cpu_small_simple) {
probdistBernoulliLogitGLM_opencl_matches_cpu_small_simple) {
int N = 3;
int M = 2;

Expand All @@ -118,7 +118,7 @@ TEST_F(OpenCLRevTests,
bernoulli_logit_glm_lpmf_functor_propto, y, x, alpha, beta);
}

TEST_F(OpenCLRevTests, probdistributionsBernoulliLogitGLM_opencl_broadcast_y) {
TEST_F(OpenCLRevTests, probdistBernoulliLogitGLM_opencl_broadcast_y) {
int N = 3;
int M = 2;

Expand All @@ -136,7 +136,7 @@ TEST_F(OpenCLRevTests, probdistributionsBernoulliLogitGLM_opencl_broadcast_y) {
}

TEST_F(OpenCLRevTests,
probdistributionsBernoulliLogitGLM_opencl_matches_cpu_zero_instances) {
probdistBernoulliLogitGLM_opencl_matches_cpu_zero_instances) {
int N = 0;
int M = 2;

Expand All @@ -153,7 +153,7 @@ TEST_F(OpenCLRevTests,
}

TEST_F(OpenCLRevTests,
probdistributionsBernoulliLogitGLM_opencl_matches_cpu_zero_attributes) {
probdistBernoulliLogitGLM_opencl_matches_cpu_zero_attributes) {
int N = 3;
int M = 0;

Expand All @@ -170,7 +170,7 @@ TEST_F(OpenCLRevTests,

TEST_F(
OpenCLRevTests,
probdistributionsBernoulliLogitGLM_opencl_matches_cpu_small_vector_alpha) {
probdistBernoulliLogitGLM_opencl_matches_cpu_small_vector_alpha) {
int N = 3;
int M = 2;

Expand All @@ -189,7 +189,7 @@ TEST_F(
}

TEST_F(OpenCLRevTests,
probdistributionsBernoulliLogitGLM_opencl_matches_cpu_big) {
probdistBernoulliLogitGLM_opencl_matches_cpu_big) {
int N = 153;
int M = 71;

Expand Down
10 changes: 5 additions & 5 deletions test/unit/math/opencl/rev/bernoulli_logit_lpmf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <test/unit/math/opencl/util.hpp>
#include <vector>

TEST_F(OpenCLRevTests, probdistributionsBernoulliLogit_error_checking) {
TEST_F(OpenCLRevTests, probdistBernoulliLogit_error_checking) {
int N = 3;

std::vector<int> n{1, 0, 1};
Expand Down Expand Up @@ -47,7 +47,7 @@ auto bernoulli_logit_lpmf_functor_propto
};

TEST_F(OpenCLRevTests,
probdistributionsBernoulliLogit_opencl_matches_cpu_small) {
probdistBernoulliLogit_opencl_matches_cpu_small) {
int N = 3;
int M = 2;

Expand All @@ -65,7 +65,7 @@ TEST_F(OpenCLRevTests,
bernoulli_logit_lpmf_functor_propto, n, theta.transpose().eval());
}

TEST_F(OpenCLRevTests, probdistributionsBernoulliLogit_opencl_broadcast_n) {
TEST_F(OpenCLRevTests, probdistBernoulliLogit_opencl_broadcast_n) {
int N = 3;

int n = 1;
Expand All @@ -78,7 +78,7 @@ TEST_F(OpenCLRevTests, probdistributionsBernoulliLogit_opencl_broadcast_n) {
bernoulli_logit_lpmf_functor_propto, n, theta);
}

TEST_F(OpenCLRevTests, probdistributionsBernoulliLogit_opencl_broadcast_theta) {
TEST_F(OpenCLRevTests, probdistBernoulliLogit_opencl_broadcast_theta) {
int N = 3;

std::vector<int> n{0, 1, 0};
Expand All @@ -90,7 +90,7 @@ TEST_F(OpenCLRevTests, probdistributionsBernoulliLogit_opencl_broadcast_theta) {
bernoulli_logit_lpmf_functor_propto, n, theta);
}

TEST_F(OpenCLRevTests, probdistributionsBernoulliLogit_opencl_matches_cpu_big) {
TEST_F(OpenCLRevTests, probdistBernoulliLogit_opencl_matches_cpu_big) {
int N = 153;

std::vector<int> n(N);
Expand Down
10 changes: 5 additions & 5 deletions test/unit/math/opencl/rev/bernoulli_lpmf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <test/unit/math/opencl/util.hpp>
#include <vector>

TEST_F(OpenCLRevTests, probdistributionsBernoulli_error_checking) {
TEST_F(OpenCLRevTests, probdistBernoulli_error_checking) {
int N = 3;

std::vector<int> n{1, 0, 1};
Expand Down Expand Up @@ -45,7 +45,7 @@ auto bernoulli_lpmf_functor_propto = [](const auto& n, const auto& theta) {
return stan::math::bernoulli_lpmf<true>(n, theta);
};

TEST_F(OpenCLRevTests, probdistributionsBernoulli_opencl_matches_cpu_small) {
TEST_F(OpenCLRevTests, probdistBernoulli_opencl_matches_cpu_small) {
int N = 3;
int M = 2;

Expand All @@ -63,7 +63,7 @@ TEST_F(OpenCLRevTests, probdistributionsBernoulli_opencl_matches_cpu_small) {
n, theta.transpose().eval());
}

TEST_F(OpenCLRevTests, probdistributionsBernoulli_opencl_broadcast_n) {
TEST_F(OpenCLRevTests, probdistBernoulli_opencl_broadcast_n) {
int N = 3;

int n_scal = 1;
Expand All @@ -76,7 +76,7 @@ TEST_F(OpenCLRevTests, probdistributionsBernoulli_opencl_broadcast_n) {
bernoulli_lpmf_functor_propto, n_scal, theta);
}

TEST_F(OpenCLRevTests, probdistributionsBernoulli_opencl_broadcast_theta) {
TEST_F(OpenCLRevTests, probdistBernoulli_opencl_broadcast_theta) {
int N = 3;

std::vector<int> n{0, 1, 0};
Expand All @@ -88,7 +88,7 @@ TEST_F(OpenCLRevTests, probdistributionsBernoulli_opencl_broadcast_theta) {
bernoulli_lpmf_functor_propto, n, theta_scal);
}

TEST_F(OpenCLRevTests, probdistributionsBernoulli_opencl_matches_cpu_big) {
TEST_F(OpenCLRevTests, probdistBernoulli_opencl_matches_cpu_big) {
int N = 153;

std::vector<int> n(N);
Expand Down
14 changes: 7 additions & 7 deletions test/unit/math/opencl/rev/beta_binomial_lpmf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <test/unit/math/opencl/util.hpp>
#include <vector>

TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_error_checking) {
TEST_F(OpenCLRevTests, probdistBetaBinomial_error_checking) {
int N = 3;

std::vector<int> n{2, 0, 12};
Expand Down Expand Up @@ -86,7 +86,7 @@ auto beta_binomial_lpmf_functor_propto
return stan::math::beta_binomial_lpmf<true>(n, N, alpha, beta);
};

TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_opencl_matches_cpu_small) {
TEST_F(OpenCLRevTests, probdistBetaBinomial_opencl_matches_cpu_small) {
int N_ = 3;

std::vector<int> n{2, 0, 12};
Expand All @@ -108,7 +108,7 @@ TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_opencl_matches_cpu_small) {
beta.transpose().eval());
}

TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_opencl_broadcast_n) {
TEST_F(OpenCLRevTests, probdistBetaBinomial_opencl_broadcast_n) {
int N_ = 3;

int n = 1;
Expand All @@ -130,7 +130,7 @@ TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_opencl_broadcast_n) {
beta.transpose().eval());
}

TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_opencl_broadcast_N) {
TEST_F(OpenCLRevTests, probdistBetaBinomial_opencl_broadcast_N) {
int N_ = 3;

std::vector<int> n{2, 0, 12};
Expand All @@ -152,7 +152,7 @@ TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_opencl_broadcast_N) {
beta.transpose().eval());
}

TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_opencl_broadcast_alpha) {
TEST_F(OpenCLRevTests, probdistBetaBinomial_opencl_broadcast_alpha) {
int N_ = 3;

std::vector<int> n{2, 0, 12};
Expand All @@ -171,7 +171,7 @@ TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_opencl_broadcast_alpha) {
beta_binomial_lpmf_functor_propto, n, N, alpha, beta.transpose().eval());
}

TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_opencl_broadcast_beta) {
TEST_F(OpenCLRevTests, probdistBetaBinomial_opencl_broadcast_beta) {
int N_ = 3;

std::vector<int> n{2, 0, 12};
Expand All @@ -189,7 +189,7 @@ TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_opencl_broadcast_beta) {
beta_binomial_lpmf_functor_propto, n, N, alpha.transpose().eval(), beta);
}

TEST_F(OpenCLRevTests, probdistributionsBetaBinomial_opencl_matches_cpu_big) {
TEST_F(OpenCLRevTests, probdistBetaBinomial_opencl_matches_cpu_big) {
int N_ = 153;

std::vector<int> n(N_);
Expand Down
Loading

0 comments on commit 54a3da2

Please sign in to comment.