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

Function f

dask/array/tests/test_array_core.py:4013–4020  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

4011 y = da.ones((4, 4), chunks=(2, 2))
4012
4013 def f(a, b):
4014 assert isinstance(a, np.ndarray)
4015 assert isinstance(b, np.ndarray)
4016
4017 assert a.shape == (2, 4, 4)
4018 assert b.shape == (4, 4)
4019
4020 return (a + b).sum(axis=(1, 2))
4021
4022 z = da.blockwise(f, "i", x, "ijk", y, "jk", concatenate=True, dtype=x.dtype)
4023 assert_eq(z, np.ones(4) * 32)

Callers

nothing calls this directly

Calls 2

sumMethod · 0.45
onesMethod · 0.45

Tested by

no test coverage detected