[SciPy-Dev] scipy improve performance by parallelizing
Derek Homeier
derek at astro.physik.uni-goettingen.de
Thu Jul 24 12:46:58 EDT 2014
Hi Sai,
> but when i use numpy.convolve i get this error ValueError: object too deep for desired array
>
> does numpy.convolve work for 2D or 3D convolution?
>
no, it works on linear arrays only, as you will find in the documentation.
It seems the best optimisation strategy for your case would depend on how many individual
convolutions of what size arrays it involves.
For large arrays, as Sturla has suggested, scipy.signal.fftconvolve which does operate on multi-D arrays,
could be the best (or at least initially easiest) way to go.
HTH
Derek
More information about the SciPy-Dev
mailing list