diff options
author | mattip <matti.picus@gmail.com> | 2019-11-20 10:57:16 -0800 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-11-20 10:57:16 -0800 |
commit | f3fde3c4d0acba41122a6d87c0315064579fad6a (patch) | |
tree | 112a917c1f47fa9b9df90117984c196b5afc6c81 /doc/source/reference/random/extending.rst | |
parent | 521ea22552297345680c426c0204b17b644e6bd0 (diff) | |
download | numpy-f3fde3c4d0acba41122a6d87c0315064579fad6a.tar.gz |
DOC, MAINT: fix documentation, remove __init__.py
Diffstat (limited to 'doc/source/reference/random/extending.rst')
-rw-r--r-- | doc/source/reference/random/extending.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/source/reference/random/extending.rst b/doc/source/reference/random/extending.rst index c63fb1a1b..7b1168c45 100644 --- a/doc/source/reference/random/extending.rst +++ b/doc/source/reference/random/extending.rst @@ -16,7 +16,7 @@ This example shows how numba can be used to produce gaussian samples using a pure Python implementation which is then compiled. The random numbers are provided by ``ctypes.next_double``. -.. literalinclude:: ../../../../numpy/random/examples/numba/extending.py +.. literalinclude:: ../../../../numpy/random/_examples/numba/extending.py :language: python :end-before: example 2 @@ -35,14 +35,14 @@ This example uses `PCG64` and the example from above. The usual caveats for writing high-performance code using Cython -- removing bounds checks and wrap around, providing array alignment information -- still apply. -.. literalinclude:: ../../../../numpy/random/examples/cython/extending_distributions.pyx +.. literalinclude:: ../../../../numpy/random/_examples/cython/extending_distributions.pyx :language: cython :end-before: example 2 The BitGenerator can also be directly accessed using the members of the basic RNG structure. -.. literalinclude:: ../../../../numpy/random/examples/cython/extending_distributions.pyx +.. literalinclude:: ../../../../numpy/random/_examples/cython/extending_distributions.pyx :language: cython :start-after: example 2 |