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

Function test_matmul_array_ufunc

dask/array/tests/test_array_core.py:1324–1332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1322
1323
1324def test_matmul_array_ufunc():
1325 # regression test for https://github.com/dask/dask/issues/4353
1326 rng = np.random.default_rng()
1327 x = rng.random((5, 5))
1328 y = rng.random((5, 2))
1329 a = from_array(x, chunks=(1, 5))
1330 b = from_array(y, chunks=(5, 1))
1331 result = b.__array_ufunc__(np.matmul, "__call__", a, b)
1332 assert_eq(result, x.dot(y))
1333
1334
1335def test_T():

Callers

nothing calls this directly

Calls 5

from_arrayFunction · 0.90
assert_eqFunction · 0.90
randomMethod · 0.45
__array_ufunc__Method · 0.45
dotMethod · 0.45

Tested by

no test coverage detected