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

Function uniform32_from_uint53

numpy/random/tests/test_direct.py:62–65  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

60
61
62def uniform32_from_uint53(x):
63 x = np.uint64(x) >> np.uint64(16)
64 x = np.uint32(x & np.uint64(0xffffffff))
65 return uint32_to_float32(x)
66
67
68def uniform32_from_uint32(x):

Callers 1

uniform32_from_uintFunction · 0.85

Calls 1

uint32_to_float32Function · 0.85

Tested by

no test coverage detected