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

Source from the content-addressed store, hash-verified

1367
1368
1369def test_broadcast_to_scalar():
1370 x = 5
1371
1372 for shape in [tuple(), (0,), (2, 3), (5, 4, 6), (2, 5, 1, 6), (3, 4, 5, 4, 6)]:
1373 a = np.broadcast_to(x, shape)
1374 d = broadcast_to(x, shape)
1375
1376 assert_eq(a, d)
1377
1378
1379def 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