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

Function test_matmul_array_ufunc

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

Source from the content-addressed store, hash-verified

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…