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

Function test_diff

dask/array/tests/test_routines.py:549–553  ·  view source on GitHub ↗
(shape, n, axis)

Source from the content-addressed store, hash-verified

547)
548@pytest.mark.parametrize("n", [0, 1, 2])
549def test_diff(shape, n, axis):
550 x = np.random.default_rng().integers(0, 10, shape)
551 a = da.from_array(x, chunks=(len(shape) * (5,)))
552
553 assert_eq(da.diff(a, n, axis), np.diff(x, n, axis))
554
555
556@pytest.mark.parametrize("n", [0, 1, 2])

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
diffMethod · 0.80
integersMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…