[Numpy-discussion] Proposed new function for joining arrays: np.interleave

Ralf Gommers ralf.gommers at gmail.com
Mon Apr 21 16:25:48 EDT 2014

On Mon, Apr 7, 2014 at 5:12 PM, Björn Dahlgren <bjodah at gmail.com> wrote:

> Hello,
> Interleaving arrays is something I need to do every now and then, and by
> the looks of stackoverflow so do others:
> http://stackoverflow.com/questions/12861314/interleave-rows-of-two-numpy-arrays-in-python
> http://stackoverflow.com/questions/5347065/interweaving-two-numpy-arrays
> I think the code needed for the general n dimensional case with m number
> of arrays
> is non-trivial enough for it to be useful to provide such a function in
> numpy, so I took the liberty to
> make a Pull Request <https://github.com/numpy/numpy/pull/4596> with my
> implementation. This would be my first contribution to NumPy so I apologize
> if something is not adhering to your practices.
It looks pretty good to me for a first contribution. And I'm fine with
adding this function, should see a reasonable amount of usage.


>  Jaime has already pointed out that I should email this list (I hope I
> managed to email the list in
> the right way - never used a mailing list before) for you to notice the
> pull request. He also pointed
> out some improvements of my proposed implementation (not forcing
> consistent dtype), but before
> I go on and make changes I might need to ask you guys if this is really
> something you are interested in including?
>  Best regards,
> /Björn Dahlgren
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140421/8bacf038/attachment.html>

More information about the NumPy-Discussion mailing list