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

Function test_diff

dask/array/tests/test_cupy_routines.py:50–54  ·  view source on GitHub ↗
(shape, n, axis)

Source from the content-addressed store, hash-verified

48)
49@pytest.mark.parametrize("n", [0, 1, 2])
50def test_diff(shape, n, axis):
51 x = cupy.random.default_rng().integers(0, 10, shape)
52 a = da.from_array(x, chunks=(len(shape) * (5,)))
53
54 assert_eq(da.diff(a, n, axis), cupy.diff(x, n, axis))
55
56
57@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