SciPy

Discrete Fourier transforms (scipy.fft)

Fast Fourier Transforms (FFTs)

fft

Compute the 1-D discrete Fourier Transform.

ifft

Compute the 1-D inverse discrete Fourier Transform.

fft2

Compute the 2-D discrete Fourier Transform

ifft2

Compute the 2-D inverse discrete Fourier Transform.

fftn

Compute the N-D discrete Fourier Transform.

ifftn

Compute the N-D inverse discrete Fourier Transform.

rfft

Compute the 1-D discrete Fourier Transform for real input.

irfft

Compute the inverse of the n-point DFT for real input.

rfft2

Compute the 2-D FFT of a real array.

irfft2

Compute the 2-D inverse FFT of a real array.

rfftn

Compute the N-D discrete Fourier Transform for real input.

irfftn

Compute the inverse of the N-D FFT of real input.

hfft

Compute the FFT of a signal that has Hermitian symmetry, i.e., a real spectrum.

ihfft

Compute the inverse FFT of a signal that has Hermitian symmetry.

hfft2

Compute the 2-D FFT of a Hermitian complex array.

ihfft2

Compute the 2-D inverse FFT of a real spectrum.

hfftn

Compute the N-D FFT of Hermitian symmetric complex input, i.e., a signal with a real spectrum.

ihfftn

Compute the N-D inverse discrete Fourier Transform for a real spectrum.

Discrete Sin and Cosine Transforms (DST and DCT)

dct

Return the Discrete Cosine Transform of arbitrary type sequence x.

idct

Return the Inverse Discrete Cosine Transform of an arbitrary type sequence.

dctn

Return multidimensional Discrete Cosine Transform along the specified axes.

idctn

Return multidimensional Discrete Cosine Transform along the specified axes.

dst

Return the Discrete Sine Transform of arbitrary type sequence x.

idst

Return the Inverse Discrete Sine Transform of an arbitrary type sequence.

dstn

Return multidimensional Discrete Sine Transform along the specified axes.

idstn

Return multidimensional Discrete Sine Transform along the specified axes.

Helper functions

fftshift(x[, axes])

Shift the zero-frequency component to the center of the spectrum.

ifftshift(x[, axes])

The inverse of fftshift.

fftfreq(n[, d])

Return the Discrete Fourier Transform sample frequencies.

rfftfreq(n[, d])

Return the Discrete Fourier Transform sample frequencies (for usage with rfft, irfft).

next_fast_len

Find the next fast size of input data to fft, for zero-padding, etc.

set_workers(workers)

Context manager for the default number of workers used in scipy.fft

get_workers()

Returns the default number of workers within the current context

Backend control

set_backend(backend[, coerce, only])

Context manager to set the backend within a fixed scope.

skip_backend(backend)

Context manager to skip a backend within a fixed scope.

set_global_backend(backend)

Sets the global fft backend

register_backend(backend)

Register a backend for permanent use.