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

Function test_array_ufunc_binop

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

Source from the content-addressed store, hash-verified

417
418
419def test_array_ufunc_binop():
420 x = np.arange(25).reshape((5, 5))
421 d = da.from_array(x, chunks=(2, 2))
422
423 for func in [np.add, np.multiply]:
424 assert isinstance(func(d, d), da.Array)
425 assert_eq(func(d, d), func(x, x))
426
427 assert isinstance(func.outer(d, d), da.Array)
428 assert_eq(func.outer(d, d), func.outer(x, x))
429
430
431def 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