[SciPy-User] Vectorised convolution
Mon Aug 1 21:57:25 CDT 2011
On Mon, Aug 1, 2011 at 9:19 PM, Jason Heeris <email@example.com> wrote:
> 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?
I show one way to do this in the following SciPy cookbook entry:
In particular, see the second paragraph.
> SciPy-User mailing list
More information about the SciPy-User