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

Function test_broadcast_operator

dask/array/tests/test_array_core.py:1450–1461  ·  view source on GitHub ↗
(u_shape, v_shape)

Source from the content-addressed store, hash-verified

1448 ],
1449)
1450def test_broadcast_operator(u_shape, v_shape):
1451 rng = np.random.default_rng()
1452 u = rng.random(u_shape)
1453 v = rng.random(v_shape)
1454
1455 d_u = from_array(u, chunks=1)
1456 d_v = from_array(v, chunks=1)
1457
1458 w = u * v
1459 d_w = d_u * d_v
1460
1461 assert_eq(w, d_w)
1462
1463
1464@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

from_arrayFunction · 0.90
assert_eqFunction · 0.90
randomMethod · 0.45

Tested by

no test coverage detected