66#include < vector>
77
88TEST (ProbDistributionsBinomialLogitGLM, error_checking) {
9- using stan::math::matrix_cl;
109 using stan::math::binomial_logit_glm_lpmf;
10+ using stan::math::matrix_cl;
1111
1212 int N = 3 ;
1313 int M = 2 ;
@@ -80,10 +80,10 @@ TEST(ProbDistributionsBinomialLogitGLM, error_checking) {
8080 binomial_logit_glm_lpmf (n_cl, trials_cl, x_cl, alpha_cl, beta_size_cl),
8181 std::invalid_argument);
8282
83- EXPECT_THROW (
83+ EXPECT_THROW (
8484 binomial_logit_glm_lpmf (n_value_cl, trials_cl, x_cl, alpha_cl, beta_cl),
8585 std::domain_error);
86- EXPECT_THROW (
86+ EXPECT_THROW (
8787 binomial_logit_glm_lpmf (n_cl, trials_value_cl, x_cl, alpha_cl, beta_cl),
8888 std::domain_error);
8989 EXPECT_THROW (
@@ -98,15 +98,15 @@ TEST(ProbDistributionsBinomialLogitGLM, error_checking) {
9898}
9999
100100auto binomial_logit_glm_lpmf_functor
101- = [](const auto & n, const auto & trials, const auto & x,
102- const auto & alpha, const auto & beta) {
101+ = [](const auto & n, const auto & trials, const auto & x, const auto & alpha,
102+ const auto & beta) {
103103 return stan::math::binomial_logit_glm_lpmf (n, trials, x, alpha, beta);
104104 };
105105auto binomial_logit_glm_lpmf_functor_propto
106- = [](const auto & n, const auto & trials, const auto & x,
107- const auto & alpha, const auto & beta) {
108- return stan::math::binomial_logit_glm_lpmf<true >(n, trials, x,
109- alpha, beta);
106+ = [](const auto & n, const auto & trials, const auto & x, const auto & alpha,
107+ const auto & beta) {
108+ return stan::math::binomial_logit_glm_lpmf<true >(n, trials, x, alpha,
109+ beta);
110110 };
111111
112112TEST (ProbDistributionsBinomialLogitGLM, opencl_matches_cpu_small_simple) {
@@ -121,8 +121,8 @@ TEST(ProbDistributionsBinomialLogitGLM, opencl_matches_cpu_small_simple) {
121121 beta << 0.3 , 2 ;
122122 double alpha = 0.3 ;
123123
124- stan::math::test::compare_cpu_opencl_prim_rev (
125- binomial_logit_glm_lpmf_functor, n, trials, x, alpha, beta);
124+ stan::math::test::compare_cpu_opencl_prim_rev (binomial_logit_glm_lpmf_functor,
125+ n, trials, x, alpha, beta);
126126 stan::math::test::compare_cpu_opencl_prim_rev (
127127 binomial_logit_glm_lpmf_functor_propto, n, trials, x, alpha, beta);
128128}
@@ -156,8 +156,8 @@ TEST(ProbDistributionsBinomialLogitGLM, opencl_matches_cpu_zero_instances) {
156156 beta << 0.3 , 2 ;
157157 double alpha = 0.3 ;
158158
159- stan::math::test::compare_cpu_opencl_prim_rev (
160- binomial_logit_glm_lpmf_functor, n, trials, x, alpha, beta);
159+ stan::math::test::compare_cpu_opencl_prim_rev (binomial_logit_glm_lpmf_functor,
160+ n, trials, x, alpha, beta);
161161 stan::math::test::compare_cpu_opencl_prim_rev (
162162 binomial_logit_glm_lpmf_functor_propto, n, trials, x, alpha, beta);
163163}
@@ -172,15 +172,13 @@ TEST(ProbDistributionsBinomialLogitGLM, opencl_matches_cpu_zero_attributes) {
172172 Eigen::VectorXd beta (M);
173173 double alpha = 0.3 ;
174174
175- stan::math::test::compare_cpu_opencl_prim_rev (
176- binomial_logit_glm_lpmf_functor, n, trials, x, alpha, beta);
175+ stan::math::test::compare_cpu_opencl_prim_rev (binomial_logit_glm_lpmf_functor,
176+ n, trials, x, alpha, beta);
177177 stan::math::test::compare_cpu_opencl_prim_rev (
178178 binomial_logit_glm_lpmf_functor_propto, n, trials, x, alpha, beta);
179179}
180180
181-
182- TEST (ProbDistributionsBinomialLogitGLM,
183- opencl_matches_cpu_small_vector_alpha) {
181+ TEST (ProbDistributionsBinomialLogitGLM, opencl_matches_cpu_small_vector_alpha) {
184182 int N = 3 ;
185183 int M = 2 ;
186184
@@ -193,8 +191,8 @@ TEST(ProbDistributionsBinomialLogitGLM,
193191 Eigen::VectorXd alpha (N);
194192 alpha << 0.3 , -0.8 , 1.8 ;
195193
196- stan::math::test::compare_cpu_opencl_prim_rev (
197- binomial_logit_glm_lpmf_functor, n, trials, x, alpha, beta);
194+ stan::math::test::compare_cpu_opencl_prim_rev (binomial_logit_glm_lpmf_functor,
195+ n, trials, x, alpha, beta);
198196 stan::math::test::compare_cpu_opencl_prim_rev (
199197 binomial_logit_glm_lpmf_functor_propto, n, trials, x, alpha, beta);
200198}
@@ -213,8 +211,8 @@ TEST(ProbDistributionsBinomialLogitGLM, opencl_matches_cpu_big) {
213211 Eigen::VectorXd beta = Eigen::VectorXd::Random (M);
214212 Eigen::VectorXd alpha = Eigen::VectorXd::Random (N);
215213
216- stan::math::test::compare_cpu_opencl_prim_rev (
217- binomial_logit_glm_lpmf_functor, n, trials, x, alpha, beta);
214+ stan::math::test::compare_cpu_opencl_prim_rev (binomial_logit_glm_lpmf_functor,
215+ n, trials, x, alpha, beta);
218216 stan::math::test::compare_cpu_opencl_prim_rev (
219217 binomial_logit_glm_lpmf_functor_propto, n, trials, x, alpha, beta);
220218}
0 commit comments