Updated numpy.random C-API
![](https://secure.gravatar.com/avatar/72f994ca072df3a3d2c3db8a137790fd.jpg?s=120&d=mm&r=g)
Hi everyone, We recently officially exposed and documented[0] the C-API side of numpy.random. There are now working examples[3] of using numpy.random from numba[1], cython[2], and cffi[5]. Please try this out before the 1.18 release by installing the latest HEAD version and making sure the interfaces work for your use case. There is an open issue[4] for exploring such use cases, but we need feedback about where documentation is missing, where functionality falls short, and help with sample code demonstrating any of the use cases not yet explicitly tested. Matti [0] https://numpy.org/devdocs/reference/random/extending.html [1] https://numpy.org/devdocs/reference/random/extending.html#numba [2] https://numpy.org/devdocs/reference/random/extending.html#cython [3] https://numpy.org/devdocs/reference/random/extending.html#examples [4] https://github.com/numpy/numpy/issues/14778 [5] https://github.com/numpy/numpy/pull/14954
![](https://secure.gravatar.com/avatar/5f88830d19f9c83e2ddfd913496c5025.jpg?s=120&d=mm&r=g)
On Fri, Nov 22, 2019 at 8:54 AM Matti Picus <matti.picus@gmail.com> wrote:
Hi everyone,
We recently officially exposed and documented[0] the C-API side of numpy.random. There are now working examples[3] of using numpy.random from numba[1], cython[2], and cffi[5].
Please try this out before the 1.18 release by installing the latest HEAD version and making sure the interfaces work for your use case.
There is an open issue[4] for exploring such use cases, but we need feedback about where documentation is missing, where functionality falls short, and help with sample code demonstrating any of the use cases not yet explicitly tested.
Thanks Matti! I added a bunch of comments in https://github.com/numpy/numpy/issues/14778#issuecomment-559609624 Cheers, Ralf
Matti
[0] https://numpy.org/devdocs/reference/random/extending.html
[1] https://numpy.org/devdocs/reference/random/extending.html#numba
[2] https://numpy.org/devdocs/reference/random/extending.html#cython
[3] https://numpy.org/devdocs/reference/random/extending.html#examples
[4] https://github.com/numpy/numpy/issues/14778
[5] https://github.com/numpy/numpy/pull/14954
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion
participants (2)
-
Matti Picus
-
Ralf Gommers