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:1361–1368  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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