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

Function test_dot_method

dask/array/tests/test_routines.py:407–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405
406
407def test_dot_method():
408 x = np.arange(400).reshape((20, 20))
409 a = da.from_array(x, chunks=(5, 5))
410 y = np.arange(200).reshape((20, 10))
411 b = da.from_array(y, chunks=(5, 5))
412
413 assert_eq(a.dot(b), x.dot(y))
414
415
416def test_dot_persist_equivalence():

Callers

nothing calls this directly

Calls 4

assert_eqFunction · 0.90
reshapeMethod · 0.80
arangeMethod · 0.45
dotMethod · 0.45

Tested by

no test coverage detected