fftconvolve#

caput.algorithms.fft.fftw.FFTW.fftconvolve(in1, in2)[source]#

Convolve two arrays by multiplying in the Fourier domain.

in1 and in2 must have the same dtype, and both the forward and backward FFTs must be initialised.

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.

Returns:
convolutioncomplex ndarray

Discrete convolution of in1 and in2

Raises:
AttributeError

If either the forward or the backward FFT is not initialized.