[SciPy-User] Vectorised convolution

Jason Heeris jason.heeris@gmail....
Mon Aug 1 21:19:02 CDT 2011


I'm using the scipy.signal.convolve function on an ndarray that represents
independent sets of data (each set is a row). It seems that with this
function I need to manually split up the rows to work on them independently,
otherwise it does a 2D convolution:

    for idx in xrange(0, S):
        conv[idx] = sp.signal.convolve(inputs[idx], other, mode='full')

Is there a vectorised version of this function? In other words, if I were
doing an FFT I'd use np.fft.fft(inputs, axis=1) — is it possible to do a
single axis convolution on a 2D array?

Cheers,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20110802/c45458e5/attachment.html 


More information about the SciPy-User mailing list