fftconvolve#

caput.algorithms.fft.fftw.fftconvolve(in1, in2, axes=None)[source]#

Convolve two arrays by multiplying in the Fourier domain.

in1 and in2 must have the same dtype.

If the convolution 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:
in1complex array_like

First input array

in2complex array_like

Second input array to by convolved with x. Must have the same dtype as x.

axesint | iterable[int], optional

Axes over which to do the convolution. Default is all axes.

Returns:
convolutioncomplex ndarray

Discrete convolution of in1 and in2