Open cjordan opened 4 years ago
It would definitely be nice to have this as an example! Would you mind opening a PR? Then we can discuss the implementation details there, which is better suited to comment on specific lines :grin:
I would go as far as saying that if you have a complete port of np.convolve
it would probably be a good addition to ndarray
itself!
Hi!
Not sure if there's a better place for this, so please let me know if I'm out of line.
I'm (slowly) trying to port an existing python package of mine to rust. One of the first stumbling blocks was the (apparent) lack of a convolution function available in various rust libraries. Below is my solution.
(Also, I believe that using ffts for convolution is better only when the data is sufficiently big, so I'm interested in the naive method).
This probably could be better; any suggestions are welcome. I have no idea how to generalise this for higher dimensional arrays, so that's also a consideration. I'd be happy to put this into a PR if it's suitable somewhere.