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

Function uint32_to_float32

numpy/random/tests/test_direct.py:60–61  ·  view source on GitHub ↗
(u)

Source from the content-addressed store, hash-verified

58
59
60def uint32_to_float32(u):
61 return ((u >> np.uint32(8)) * (1.0 / 2**24)).astype(np.float32)
62
63
64def uniform32_from_uint64(x):

Callers 3

uniform32_from_uint64Function · 0.85
uniform32_from_uint53Function · 0.85
uniform32_from_uint32Function · 0.85

Calls 1

astypeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…