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

Function uniform_from_uint32

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

Source from the content-addressed store, hash-verified

103
104
105def uniform_from_uint32(x):
106 out = np.empty(len(x) // 2)
107 for i in range(0, len(x), 2):
108 a = x[i] >> 5
109 b = x[i + 1] >> 6
110 out[i // 2] = (a * 67108864.0 + b) / 9007199254740992.0
111 return out
112
113
114def uniform_from_dsfmt(x):

Callers 2

uniform_from_uintFunction · 0.85
gauss_from_uintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…