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

Function test_broadcast_to_scalar

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

Source from the content-addressed store, hash-verified

1368
1369
1370def test_broadcast_to_scalar():
1371 x = 5
1372
1373 for shape in [tuple(), (0,), (2, 3), (5, 4, 6), (2, 5, 1, 6), (3, 4, 5, 4, 6)]:
1374 a = np.broadcast_to(x, shape)
1375 d = broadcast_to(x, shape)
1376
1377 assert_eq(a, d)
1378
1379
1380def test_broadcast_to_chunks():

Callers

nothing calls this directly

Calls 2

broadcast_toFunction · 0.90
assert_eqFunction · 0.90

Tested by

no test coverage detected