diff options
Diffstat (limited to 'doc/source/reference/random')
| -rw-r--r-- | doc/source/reference/random/c-api.rst | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/doc/source/reference/random/c-api.rst b/doc/source/reference/random/c-api.rst index 0d60f4d9e..63b0fdc2b 100644 --- a/doc/source/reference/random/c-api.rst +++ b/doc/source/reference/random/c-api.rst @@ -1,20 +1,14 @@ -Cython API for random ---------------------- +C API for random +---------------- .. currentmodule:: numpy.random -Typed versions of many of the `Generator` and `BitGenerator` methods as well as -the classes themselves can be accessed directly from Cython via - -.. code-block:: cython - - cimport numpy.random - -C API for random ----------------- +Access to various distributions below is available via Cython or C-wrapper +libraries like CFFI. All the functions accept a :c:type:`bitgen_t` as their +first argument. To access these from Cython or C, you must link with the +``npyrandom`` library which is part of the NumPy distribution, located in +``numpy/random/lib``. -Access to various distributions is available via Cython or C-wrapper libraries -like CFFI. All the functions accept a :c:type:`bitgen_t` as their first argument. .. c:type:: bitgen_t |
