Is there an easy way to perform convolutions along a particular axis of an array? -gideon
There are at least two options: 1. use convolve1d from numpy.numarray.nd_image (or scipy.ndimage) 2. use scipy.signal.convolve and adjust the dimensions of the convolution kenel to align it along the desired axis. Nadav -----הודעה מקורית----- מאת: numpy-discussion-bounces@scipy.org בשם Gideon Simpson נשלח: ה 29-ינואר-09 06:59 אל: Discussion of Numerical Python נושא: [Numpy-discussion] convolution axis Is there an easy way to perform convolutions along a particular axis of an array? -gideon _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
The first option doesn't accept complex data. -gideon On Jan 29, 2009, at 1:18 AM, Nadav Horesh wrote:
There are at least two options: 1. use convolve1d from numpy.numarray.nd_image (or scipy.ndimage) 2. use scipy.signal.convolve and adjust the dimensions of the convolution kenel to align it along the desired axis.
Nadav
-----הודעה מקורית----- מאת: numpy-discussion-bounces@scipy.org בשם Gideon Simpson נשלח: ה 29-ינואר-09 06:59 אל: Discussion of Numerical Python נושא: [Numpy-discussion] convolution axis
Is there an easy way to perform convolutions along a particular axis of an array?
-gideon
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
<winmail.dat>_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
participants (2)
-
Gideon Simpson
-
Nadav Horesh