[AstroPy] Convolution of NumPy arrays of arbitrary dimension

Jacob Vanderplas jakevdp at cs.washington.edu
Fri Aug 10 19:51:50 EDT 2018

Hi Foad,
I'm sorry if I'm misunderstanding something, but does scipy.ndimage.convolve
not address your use case? It implements N-dimensional convolution:

from scipy.ndimage import convolveimport numpy as np

x = np.random.rand(10, 10, 10, 10)
w = np.ones((3, 3, 3, 3))

result = convolve(x, w)


 Jake VanderPlas
 Senior Data Science Fellow
 Director of Open Software
 University of Washington eScience Institute

On Fri, Aug 10, 2018 at 3:08 PM, Foad Sojoodi Farimani <
f.s.farimani at gmail.com> wrote:

> Hello everyone,
> My first email here, so sorry in advance if I'm violating any rules.
> I'm trying to implement the convolution of NumPy arrays of arbitrary
> dimension in order to get Cauchy product of multivariate power series.
> However I have some issues. Considering that you have already implemented a
> 1D, 2D 3D convolution (here), I was wondering maybe you can help and this
> might also be of your interest.  I have explained everything here:
> http://bit.ly/2MhJCex
> I would appreciate if you could help me figure this out. Thanks in advance.
> Best,
> Foad
> _______________________________________________
> AstroPy mailing list
> AstroPy at python.org
> https://mail.python.org/mailman/listinfo/astropy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20180810/5116a7fc/attachment.html>

More information about the AstroPy mailing list