[AstroPy] Convolution of NumPy arrays of arbitrary dimension
jakevdp at cs.washington.edu
Fri Aug 10 19:51:50 EDT 2018
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)
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:
> I would appreciate if you could help me figure this out. Thanks in advance.
> AstroPy mailing list
> AstroPy at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the AstroPy