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

Function uniform32_from_uint64

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

Source from the content-addressed store, hash-verified

62
63
64def uniform32_from_uint64(x):
65 x = np.uint64(x)
66 upper = np.array(x >> np.uint64(32), dtype=np.uint32)
67 lower = np.uint64(0xffffffff)
68 lower = np.array(x & lower, dtype=np.uint32)
69 joined = np.column_stack([lower, upper]).ravel()
70 return uint32_to_float32(joined)
71
72
73def uniform32_from_uint53(x):

Callers 1

uniform32_from_uintFunction · 0.85

Calls 2

uint32_to_float32Function · 0.85
ravelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…