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

Function test_array_function_fft

dask/array/tests/test_array_function.py:72–80  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

70
71@pytest.mark.parametrize("func", [np.fft.fft, np.fft.fft2])
72def test_array_function_fft(func):
73 x = np.random.default_rng().random((100, 100))
74 y = da.from_array(x, chunks=(100, 100))
75 res_x = func(x)
76 res_y = func(y)
77
78 if func.__module__ != "mkl_fft._numpy_fft":
79 assert isinstance(res_y, da.Array)
80 assert_eq(res_y, res_x)
81
82
83@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
funcFunction · 0.70
randomMethod · 0.45

Tested by

no test coverage detected