fft#

caput.algorithms.fft.fftw.fft(x, axes=None)[source]#

Perform a forward discrete Fourier Transform.

If the fourier transform is to be applied repeatedly to arrays with the same size and dtype, it is faster to use the FFTW class directly to avoid creating new FFTW objects.

Parameters:
xcomplex array_like

Complex input array

axesint | iterable[int], optional

Axes over which to take the fft. Default is all axes.

Returns:
fftcomplex ndarray

DFT of the input array over specified axes