Skip to content

Commit

Permalink
DOC: Fix doc and example error
Browse files Browse the repository at this point in the history
Ensure cython example works
Add cimport for cython example
  • Loading branch information
pdebuyl authored and mattip committed May 20, 2019
1 parent db87d7d commit d780f06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _randomgen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ The RNGs include:
generating doubles
* [xoroshiro128+](http://xoroshiro.di.unimi.it/) and
[xorshift1024*φ](http://xorshift.di.unimi.it/)
* [PCG64](http:w//www.pcg-random.org/)
* ThreeFry and Philox from [Random123](https://www.deshawrsearch.com/resources_random123.html)
* [PCG64](http://www.pcg-random.org/)
* ThreeFry and Philox from [Random123](https://www.deshawresearch.com/resources_random123.html)
## Differences from `numpy.random.RandomState`

### New Features
Expand Down
2 changes: 1 addition & 1 deletion _randomgen/doc/source/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ removing bounds checks and wrap around, providing array alignment information
cimport cython
from cpython.pycapsule cimport PyCapsule_IsValid, PyCapsule_GetPointer
from randomgen.common cimport *
from randomgen.distributions import random_gauss_zig
from randomgen.distributions cimport random_gauss_zig
from randomgen.xoroshiro128 import Xoroshiro128
Expand Down
2 changes: 1 addition & 1 deletion _randomgen/randomgen/examples/cython/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
include_dirs=[np.get_include()])
distributions = Extension("extending_distributions",
sources=['extending_distributions.pyx',
join('..', '..', 'randomgen', 'src',
join('..', '..', '..', 'randomgen', 'src',
'distributions', 'distributions.c')],
include_dirs=[np.get_include()])

Expand Down

0 comments on commit d780f06

Please sign in to comment.