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
FFTWclass directly to avoid creating new FFTW objects.- Parameters:
- in1
complexarray_like First input array
- in2
complexarray_like Second input array to by convolved with x. Must have the same dtype as x.
- axes
int| iterable[int], optional Axes over which to do the convolution. Default is all axes.
- in1
- Returns: