(func)
| 70 | |
| 71 | @pytest.mark.parametrize("func", [np.fft.fft, np.fft.fft2]) |
| 72 | def 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( |