8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d94043f + 4e276ac commit e711c95Copy full SHA for e711c95
numpy/random/mtrand/mtrand.pyx
@@ -127,6 +127,7 @@ cdef extern from "initarray.h":
127
# Initialize numpy
128
import_array()
129
130
+cimport cython
131
import numpy as np
132
import operator
133
import warnings
@@ -4484,7 +4485,7 @@ cdef class RandomState:
4484
4485
mnarr = <ndarray>multin
4486
mnix = <long*>PyArray_DATA(mnarr)
4487
sz = PyArray_SIZE(mnarr)
- with self.lock, nogil:
4488
+ with self.lock, nogil, cython.cdivision(True):
4489
i = 0
4490
while i < sz:
4491
Sum = 1.0
0 commit comments