We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
numpy._fft
1 parent ee092d6 commit 6c5c350Copy full SHA for 6c5c350
array_api_compat/numpy/fft.py
@@ -1,10 +1,9 @@
1
-from numpy.fft import * # noqa: F403
+import numpy as np
2
from numpy.fft import __all__ as fft_all
3
+from numpy.fft import fft2, ifft2, irfft2, rfft2
4
-from ..common import _fft
5
from .._internal import get_xp
6
-
7
-import numpy as np
+from ..common import _fft
8
9
fft = get_xp(np)(_fft.fft)
10
ifft = get_xp(np)(_fft.ifft)
@@ -21,7 +20,8 @@
21
20
fftshift = get_xp(np)(_fft.fftshift)
22
ifftshift = get_xp(np)(_fft.ifftshift)
23
24
-__all__ = fft_all + _fft.__all__
+__all__ = ["rfft2", "irfft2", "fft2", "ifft2"]
+__all__ += _fft.__all__
25
26
del get_xp
27
del np
0 commit comments