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 Jan 2, 2024
1 parent ef527c9 commit f2369ae
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/test/unit/services/pathfinder/normal_glm_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,13 @@ TEST_F(ServicesPathfinderGLM, single_noreturnlp) {
init, parameter, diagnostics, return_lp);
Eigen::MatrixXd param_vals = std::move(parameter.values_);
for (Eigen::Index i = 0; i < num_elbo_draws; ++i) {
EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws + i))) << "row: " << (num_draws + i);
EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws + i)))
<< "row: " << (num_draws + i);
}
for (Eigen::Index i = 0; i < (num_draws - num_elbo_draws); ++i) {
EXPECT_TRUE(std::isnan(param_vals.coeff(1, num_elbo_draws + i))) << "row: " << (num_draws + num_elbo_draws + i);
EXPECT_TRUE(std::isnan(param_vals.coeff(1, num_elbo_draws + i)))
<< "row: " << (num_draws + num_elbo_draws + i);
}

}

TEST_F(ServicesPathfinderGLM, multi) {
Expand Down Expand Up @@ -258,8 +259,6 @@ TEST_F(ServicesPathfinderGLM, multi) {
}
}



TEST_F(ServicesPathfinderGLM, multi_noresample) {
constexpr unsigned int seed = 0;
constexpr unsigned int chain = 1;
Expand Down Expand Up @@ -306,7 +305,7 @@ TEST_F(ServicesPathfinderGLM, multi_noresample) {
Eigen::IOFormat CommaInitFmt(Eigen::StreamPrecision, 0, ", ", ", ", "\n", "",
"", "");
EXPECT_EQ(param_vals.rows(), 10);
EXPECT_EQ(param_vals.cols(), 8000);
EXPECT_EQ(param_vals.cols(), 8000);
}

TEST_F(ServicesPathfinderGLM, multi_noresample_noreturnlp) {
Expand Down Expand Up @@ -359,10 +358,11 @@ TEST_F(ServicesPathfinderGLM, multi_noresample_noreturnlp) {
for (Eigen::Index paths_i = 0; paths_i < num_paths; ++paths_i) {
// Iterate over each set of results from the single pathfinders
for (Eigen::Index i = 0; i < num_elbo_draws; ++i) {
EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i)));
EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i)));
}
for (Eigen::Index i = 0; i < (num_draws - num_elbo_draws); ++i) {
EXPECT_TRUE(std::isnan(param_vals.coeff(1, num_draws * paths_i + num_elbo_draws + i)));
EXPECT_TRUE(std::isnan(
param_vals.coeff(1, num_draws * paths_i + num_elbo_draws + i)));
}
}
}
Expand Down Expand Up @@ -417,15 +417,15 @@ TEST_F(ServicesPathfinderGLM, multi_resample_noreturnlp) {
for (Eigen::Index paths_i = 0; paths_i < num_paths; ++paths_i) {
// Iterate over each set of results from the single pathfinders
for (Eigen::Index i = 0; i < num_elbo_draws; ++i) {
EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i)));
EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i)));
}
for (Eigen::Index i = 0; i < (num_draws - num_elbo_draws); ++i) {
EXPECT_TRUE(std::isnan(param_vals.coeff(1, num_draws * paths_i + num_elbo_draws + i)));
EXPECT_TRUE(std::isnan(
param_vals.coeff(1, num_draws * paths_i + num_elbo_draws + i)));
}
}
}


TEST_F(ServicesPathfinderGLM, multi_noresample_returnlp) {
constexpr unsigned int seed = 0;
constexpr unsigned int chain = 1;
Expand Down Expand Up @@ -476,7 +476,7 @@ TEST_F(ServicesPathfinderGLM, multi_noresample_returnlp) {
for (Eigen::Index paths_i = 0; paths_i < num_paths; ++paths_i) {
// Iterate over each set of results from the single pathfinders
for (Eigen::Index i = 0; i < num_draws; ++i) {
EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i)));
EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i)));
}
}
}

0 comments on commit f2369ae

Please sign in to comment.