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

Function uniform32_from_uint

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

Source from the content-addressed store, hash-verified

70
71
72def uniform32_from_uint(x, bits):
73 if bits == 64:
74 return uniform32_from_uint64(x)
75 elif bits == 53:
76 return uniform32_from_uint53(x)
77 elif bits == 32:
78 return uniform32_from_uint32(x)
79 else:
80 raise NotImplementedError
81
82
83def 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