Expand description
numpy.fft — 1-D forward/inverse FFT, 2-D variants, and real-input
transforms, all routed through rustfft. Frequencies follow numpy’s
fftfreq/rfftfreq conventions.
Functions§
- fft
np.fft.fft(a)— 1-D forward FFT (default n = len(a)).- fft2
np.fft.fft2(a)— 2-D FFT (FFT along axis 1, then axis 0).- fftfreq
np.fft.fftfreq(n, d=1.0)— sample frequencies for an N-point FFT.- fftn
np.fft.fftn(a)— N-dimensional FFT. Performs an FFT along every axis in turn. Ifaxesis provided, only those axes are transformed.- fftshift
np.fft.fftshift(a, axes=None)— shift the zero-frequency component to the centre along the given axes (all axes by default).- ifft
np.fft.ifft(a)— 1-D inverse FFT (normalized by 1/N).- ifft2
np.fft.ifft2(a)— 2-D inverse FFT.- ifftn
np.fft.ifftn(a)— inverse N-dimensional FFT.- ifftshift
np.fft.ifftshift(a, axes=None)— inverse offftshift.- irfft
np.fft.irfft(a, n=...)— inverse ofrfft.ndefaults to2*(len-1).- rfft
np.fft.rfft(a)— 1-D FFT of a real-valued input, returning the firstn/2 + 1complex coefficients.- rfftfreq
np.fft.rfftfreq(n, d=1.0)— frequencies forrfftoutput.