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

Function uniform_from_uint

numpy/random/tests/test_direct.py:83–87  ·  view source on GitHub ↗
(x, bits)

Source from the content-addressed store, hash-verified

81
82
83def uniform_from_uint(x, bits):
84 if bits in (64, 63, 53):
85 return uniform_from_uint64(x)
86 elif bits == 32:
87 return uniform_from_uint32(x)
88
89
90def uniform_from_uint64(x):

Callers 1

test_uniform_doubleMethod · 0.85

Calls 2

uniform_from_uint64Function · 0.85
uniform_from_uint32Function · 0.85

Tested by

no test coverage detected