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 May 22, 2024
1 parent 43847e5 commit 9575d1a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/unit/math/prim/functor/hcubature_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,21 +165,21 @@ TEST(StanMath_hcubature_prim, test1) {
20000, 0.0, reqRelError_3, 0.999998);
}


TEST(StanMath_hcubature_prim, test_issue_3075) {
// test for regressions against issue https://github.com/stan-dev/math/issues/3075
// test for regressions against issue
// https://github.com/stan-dev/math/issues/3075
using stan::math::internal::GradientCalc;
using stan::math::internal::wiener7_integrate;
using stan::math::internal::wiener5_density;
using stan::math::internal::wiener7_integrate;

auto params_st = std::make_tuple(0.553273, 1, -3.5, 0.55, 0.553161,
1.06423, 0.0941929, 0.0, -28.3242);
auto params_st = std::make_tuple(0.553273, 1, -3.5, 0.55, 0.553161, 1.06423,
0.0941929, 0.0, -28.3242);
Eigen::VectorXd xmin = Eigen::VectorXd::Zero(2);
Eigen::VectorXd xmax = Eigen::VectorXd::Ones(2);

auto f = wiener7_integrate<GradientCalc::OFF, GradientCalc::OFF>(
[](auto&&... args) { return wiener5_density<GradientCalc::ON>(args...); },
-18.3029, params_st, 1, xmin, xmax, 6000, 0, 4.5e-05);
[](auto&&... args) { return wiener5_density<GradientCalc::ON>(args...); },
-18.3029, params_st, 1, xmin, xmax, 6000, 0, 4.5e-05);

ASSERT_FLOAT_EQ(f, 4.97571e-312);
}

0 comments on commit 9575d1a

Please sign in to comment.