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

Function params_0

numpy/random/tests/test_smoke.py:15–25  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

13
14
15def params_0(f):
16 val = f()
17 assert_(np.isscalar(val))
18 val = f(10)
19 assert_(val.shape == (10,))
20 val = f((10, 10))
21 assert_(val.shape == (10, 10))
22 val = f((10, 10, 10))
23 assert_(val.shape == (10, 10, 10))
24 val = f(size=(5, 5))
25 assert_(val.shape == (5, 5))
26
27
28def params_1(f, bounded=False):

Calls 2

assert_Function · 0.90
fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…