MCPcopy
hub / github.com/dask/dask / test_outer

Function test_outer

dask/array/tests/test_routines.py:448–458  ·  view source on GitHub ↗
(shape1, shape2)

Source from the content-addressed store, hash-verified

446
447@pytest.mark.parametrize("shape1, shape2", [((20,), (6,)), ((4, 5), (2, 3))])
448def test_outer(shape1, shape2):
449 rng = np.random.default_rng(1337)
450
451 x = 2 * rng.random(shape1) - 1
452 y = 2 * rng.random(shape2) - 1
453
454 a = da.from_array(x, chunks=3)
455 b = da.from_array(y, chunks=3)
456
457 assert_eq(np.outer(x, y), da.outer(a, b))
458 assert_eq(np.outer(y, x), da.outer(b, a))
459
460
461@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
randomMethod · 0.45
outerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…