[SciPy-User] Vectorised convolution
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User