Scipy.signal.convolve in Julia

You can also write your own convolution, if (for whatever reason) you don’t like DSP.jl:

julia> using FFTW

julia> toy_conv(a,b) = begin
           newlen = length(a)+length(b)-1
           pada = [a; zeros(newlen-length(a))]
           padb = [b; zeros(newlen-length(b))]
           real(ifft(fft(pada) .* fft(padb)))
       end
toy_conv (generic function with 1 method)

julia> toy_conv([1,1],[1,1,0])
4-element Vector{Float64}:
 1.0
 2.0
 1.0
 0.0

You can also write your own FFT, if (for whatever reason) you don’t like FFTW…