[Numpy-discussion] Convolution of NumPy arrays of arbitrary dimension (original) (raw)
Foad Sojoodi Farimani f.s.farimani at gmail.com
Sat Aug 11 03:44:27 EDT 2018
- Previous message (by thread): [Numpy-discussion] Convolution of NumPy arrays of arbitrary dimension
- Next message (by thread): [Numpy-discussion] Does numpy need a *.dist-info directory? What is the status of setuptools?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Hameer,
Thanks for the reply. I have indeed seen scipy.ndimage.convolve and have mentioned it in the OP <https://stackoverflow.com/questions/51794274/convolution-of-numpy-arrays-of-arbitrary-dimension-for-cauchy-product-of-multiva>. but some questions:
- although there is nothing about the dimension of the ndarrays in its official page <https://docs.scipy.org/doc/scipy-0.16.1/reference/generated/scipy.ndimage.filters.convolve.html>, but I haven't seen any examples showing it works with higher dimensions.
- the only generalization I know of is astropy.convolution <http://docs.astropy.org/en/stable/convolution/> which works up to 3D.
- what is the difference between seen scipy.ndimage and scipy.signal.convolve? It seems to me the later is for function analysis <https://en.wikipedia.org/wiki/Convolution> not array arithmetics.
- As I can see the term convolution, even for array, arithmetics has
different meanings. For example there is
also scipy.ndimage.filters.convolve which apparently calculate things in a
different way. My final goal is do finite multivariate formal power series
multiplication (Cauchy product). I think I have figured the formula out
here
<https://math.stackexchange.com/questions/2877478/cauchy-product-of-multivariate-formal-power-series>,
but I'm not sure if it is correct completely. questions are:
- is my formula correct?
- if not what is the correct one?
- if yes has this been done before?
- if yes where? does any of the above functions do the job?
- if not is my implementation correct so far?
- how to finish the final step to populate the ndarray using the conv function?
- is my formula correct?
Thanks a gain and looking forwards to hearing back.
Best, Foad
On Sat, Aug 11, 2018 at 7:39 AM <einstein.edison at gmail.com> wrote:
On 11. Aug 2018, at 00:24, 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. I was wondering maybe you can help and this might also be of your interest. I have explained everything here in this StackOverflow post: http://bit.ly/2MhJCex I would appreciate if you could help me figure this out. Thanks in advance. Best, Foad
NumPy-Discussion mailing list NumPy-Discussion at python.org https://mail.python.org/mailman/listinfo/numpy-discussion
Hi Foad, you can use scipy.signal.convolve. It works on N-D arrays. Best Regards Hameer Abbasi Sent from my iPhone
NumPy-Discussion mailing list NumPy-Discussion at python.org https://mail.python.org/mailman/listinfo/numpy-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180811/7804bd07/attachment.html>
- Previous message (by thread): [Numpy-discussion] Convolution of NumPy arrays of arbitrary dimension
- Next message (by thread): [Numpy-discussion] Does numpy need a *.dist-info directory? What is the status of setuptools?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]