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

Function test_array_ufunc

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

Source from the content-addressed store, hash-verified

422
423
424def test_array_ufunc():
425 x = np.arange(24).reshape((4, 6))
426 d = da.from_array(x, chunks=(2, 3))
427
428 for func in [np.sin, np.sum, np.negative, partial(np.prod, axis=0)]:
429 assert isinstance(func(d), da.Array)
430 assert_eq(func(d), func(x))
431
432
433def test_array_ufunc_binop():

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected