MCPcopy Index your code
hub / github.com/dask/dask / test_broadcast_to_array

Function test_broadcast_to_array

dask/array/tests/test_array_core.py:1360–1367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1358
1359
1360def test_broadcast_to_array():
1361 x = np.random.default_rng().integers(10, size=(5, 1, 6))
1362
1363 for shape in [(5, 0, 6), (5, 4, 6), (2, 5, 1, 6), (3, 4, 5, 4, 6)]:
1364 a = np.broadcast_to(x, shape)
1365 d = broadcast_to(x, shape)
1366
1367 assert_eq(a, d)
1368
1369
1370def test_broadcast_to_scalar():

Callers

nothing calls this directly

Calls 3

broadcast_toFunction · 0.90
assert_eqFunction · 0.90
integersMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…