MCPcopy Create free account
hub / github.com/numpy/numpy / bounded_uints

Function bounded_uints

numpy/random/_examples/numba/extending.py:76–79  ·  view source on GitHub ↗
(lb, ub, n, state)

Source from the content-addressed store, hash-verified

74
75@nb.jit(nopython=True)
76def bounded_uints(lb, ub, n, state):
77 out = np.empty(n, dtype=np.uint32)
78 for i in range(n):
79 out[i] = bounded_uint(lb, ub, state)
80
81
82bounded_uints(323, 2394691, 10000000, ctypes_state.value)

Callers 1

extending.pyFile · 0.85

Calls 1

bounded_uintFunction · 0.85

Tested by

no test coverage detected