Skip to main content
All FFT functions are accessed via the np.fft namespace and return complex128 arrays. numpy-ts uses a Cooley-Tukey radix-2 algorithm for power-of-2 sizes and Bluestein’s algorithm for arbitrary sizes.

fft

Compute the 1-D discrete Fourier Transform.
Returns: NDArray — Complex128 array containing the FFT result.

ifft

Compute the 1-D inverse discrete Fourier Transform.
Returns: NDArray — Complex128 array containing the IFFT result.

fft2

Compute the 2-D discrete Fourier Transform. Equivalent to applying fft along the last two axes.
Returns: NDArray — Complex128 array containing the 2-D FFT result.

ifft2

Compute the 2-D inverse discrete Fourier Transform.
Returns: NDArray — Complex128 array containing the 2-D IFFT result.

fftn

Compute the N-dimensional discrete Fourier Transform.
Returns: NDArray — Complex128 array containing the N-D FFT result.

ifftn

Compute the N-dimensional inverse discrete Fourier Transform.
Returns: NDArray — Complex128 array containing the N-D IFFT result.