MCPcopy Create free account
hub / github.com/dask/dask / test_broadcast_to_array

Function test_broadcast_to_array

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

Source from the content-addressed store, hash-verified

1357
1358
1359def test_broadcast_to_array():
1360 x = np.random.default_rng().integers(10, size=(5, 1, 6))
1361
1362 for shape in [(5, 0, 6), (5, 4, 6), (2, 5, 1, 6), (3, 4, 5, 4, 6)]:
1363 a = np.broadcast_to(x, shape)
1364 d = broadcast_to(x, shape)
1365
1366 assert_eq(a, d)
1367
1368
1369def 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