MCPcopy Index your code
hub / github.com/dask/dask / test_array_ufunc_binop

Function test_array_ufunc_binop

dask/array/tests/test_ufunc.py:433–442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431
432
433def test_array_ufunc_binop():
434 x = np.arange(25).reshape((5, 5))
435 d = da.from_array(x, chunks=(2, 2))
436
437 for func in [np.add, np.multiply]:
438 assert isinstance(func(d, d), da.Array)
439 assert_eq(func(d, d), func(x, x))
440
441 assert isinstance(func.outer(d, d), da.Array)
442 assert_eq(func.outer(d, d), func.outer(x, x))
443
444
445def test_array_ufunc_out():

Callers

nothing calls this directly

Calls 5

assert_eqFunction · 0.90
reshapeMethod · 0.80
funcFunction · 0.70
arangeMethod · 0.45
outerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…