diff options
| author | Matti Picus <matti.picus@gmail.com> | 2020-03-17 00:02:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-16 17:02:06 -0500 |
| commit | 4f2b219647ae6a7928590be2b709894ae2403274 (patch) | |
| tree | 5448d5f350fdcbc2546f82dfe80bd4d3e0665ada /numpy/random/__init__.py | |
| parent | f77c5e83c07985aacbddb89525785a3f66ce1b3b (diff) | |
| download | numpy-4f2b219647ae6a7928590be2b709894ae2403274.tar.gz | |
BUG: add missing c_distributions.pxd, enables cython use of random C-API (gh-15463)
xref gh-14778
As pointed out in the comment by @jamesthomasgriffin, we did not include a pxd file to expose the distribution functions documented in the random c-api. This PR adds a c_distributions.pxd file that exposes them.
Squashed commits:
* BUG: add missing c_distributions.pxd to enable cython use of random C-API
* ENH, TST: add npyrandom library like npymath, test cython use of it
* BUG: actually prefix f-string with f
* MAINT: fixes from review, add _bit_generato_bit_generator.pxd
* STY: fixes from review
* BLD: don't use nprandom library for mtrand legacy build
* TST: WindowsPath cannot be used in subprocess's list2cmdline
* MAINT, API: move _bit_generator to bit_generator
* DOC: add release note about moving bit_generator
* DOC, MAINT: fixes from review
* MAINT: redo dtype determination from review
Diffstat (limited to 'numpy/random/__init__.py')
| -rw-r--r-- | numpy/random/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/__init__.py b/numpy/random/__init__.py index 0b80999d8..7efa5c07f 100644 --- a/numpy/random/__init__.py +++ b/numpy/random/__init__.py @@ -181,7 +181,7 @@ from . import _common from . import _bounded_integers from ._generator import Generator, default_rng -from ._bit_generator import SeedSequence, BitGenerator +from .bit_generator import SeedSequence, BitGenerator from ._mt19937 import MT19937 from ._pcg64 import PCG64 from ._philox import Philox |
