Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ uint32_to_float32
Function
uint32_to_float32
numpy/random/tests/test_direct.py:49–50 ·
view source on GitHub ↗
(u)
Source
from the content-addressed store, hash-verified
47
48
49
def
uint32_to_float32(u):
50
return
((u >> np.uint32(8)) * (1.0 / 2**24)).astype(np.float32)
51
52
53
def
uniform32_from_uint64(x):
Callers
3
uniform32_from_uint64
Function · 0.85
uniform32_from_uint53
Function · 0.85
uniform32_from_uint32
Function · 0.85
Calls
1
astype
Method · 0.80
Tested by
no test coverage detected