Skip to content

Commit be44110

Browse files
committed
Hypergeom Slowdown
[ci skip] [CI SKIP]
1 parent e2c989c commit be44110

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/scipy_issue_16079.cpp

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright Matt Borland, 2022
2+
// Use, modification and distribution are subject to the
3+
// Boost Software License, Version 1.0. (See accompanying fi
4+
//
5+
// See: https://github.com/scipy/scipy/issues/16079
6+
7+
#include <boost/math/distributions/hypergeometric.hpp>
8+
9+
using boost::math::cdf;
10+
using boost::math::hypergeometric;
11+
12+
int main(void)
13+
{
14+
for (int N = 48000; N < 50000; N++)
15+
{
16+
for (int r = 55; r < 59; r++)
17+
{
18+
hypergeometric hg(r, 35775, N);
19+
cdf(hg, 0);
20+
}
21+
}
22+
23+
return 0;
24+
}

0 commit comments

Comments
 (0)