summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorBenjamin Trendelkamp-Schroer <trendelkampschroer@users.noreply.github.com>2020-04-29 22:46:53 +0200
committerGitHub <noreply@github.com>2020-04-29 23:46:53 +0300
commit44e26f24621ce86ed6b24bfba4a04e82319d7bf0 (patch)
tree7855731fec8f2e2500dd6a8f3619f7e305290cbb /numpy/array_api/_array_object.py
parent909d6b8fabe2f0fcdeba6927e4506f19aae52f2e (diff)
downloadnumpy-44e26f24621ce86ed6b24bfba4a04e82319d7bf0.tar.gz
BUG: Fix numpy.random.dirichlet returns NaN for small 'alpha' parameters. (#14924)
* Add stick-breaking * Add tests demonstrating slowness for beta and dirichlet generators for small alpha (and beta) values * Remove the test for beta with small `a` and `b` * Switch from standard to stick-breaking method whenever alpha.max() < 0.1 Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions