rougier / from-python-to-numpy

An open-access book on numpy vectorization techniques, Nicolas P. Rougier, 2017
http://www.labri.fr/perso/nrougier/from-python-to-numpy
Other
2.03k stars 339 forks source link

Fix numba example syntax #82

Closed ashwinvis closed 5 years ago

ashwinvis commented 5 years ago

Fix a syntax error. np.ndarray is for cython. If needed @jit(nopython=True) can be used which releases the GIL.

rougier commented 5 years ago

Thanks ! For the nopython=True option, it could be added as a commented decorator and a comment explaining what it does.