MCPcopy Index your code
hub / github.com/numpy/numpy / uniform32_from_uint

Function uniform32_from_uint

numpy/random/tests/test_direct.py:83–91  ·  view source on GitHub ↗
(x, bits)

Source from the content-addressed store, hash-verified

81
82
83def uniform32_from_uint(x, bits):
84 if bits == 64:
85 return uniform32_from_uint64(x)
86 elif bits == 53:
87 return uniform32_from_uint53(x)
88 elif bits == 32:
89 return uniform32_from_uint32(x)
90 else:
91 raise NotImplementedError
92
93
94def uniform_from_uint(x, bits):

Callers 1

test_uniform_floatMethod · 0.85

Calls 3

uniform32_from_uint64Function · 0.85
uniform32_from_uint53Function · 0.85
uniform32_from_uint32Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…