<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 7, 2014 at 5:12 PM, Björn Dahlgren <span dir="ltr"><<a href="mailto:bjodah@gmail.com" target="_blank">bjodah@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<br><div class="gmail_quote"><div dir="ltr"><div><div><div><div><div><p>Interleaving arrays is something I need to do every now and then, and by the looks of stackoverflow so do others:</p>


<p><a href="http://stackoverflow.com/questions/12861314/interleave-rows-of-two-numpy-arrays-in-python" target="_blank">http://stackoverflow.com/questions/12861314/interleave-rows-of-two-numpy-arrays-in-python</a><br><a href="http://stackoverflow.com/questions/5347065/interweaving-two-numpy-arrays" target="_blank">http://stackoverflow.com/questions/5347065/interweaving-two-numpy-arrays</a></p>





<p>I think the code needed for the general n dimensional case with m number of arrays<br>
is non-trivial enough for it to be useful to provide such a function in numpy, so I took the liberty to<br>
make a <a href="https://github.com/numpy/numpy/pull/4596" target="_blank">Pull Request</a> with my implementation. This would be my first contribution
 to NumPy so I apologize if something is not adhering to your practices.</p></div></div></div></div></div></div></div></div></blockquote><div>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.<br>
<br></div><div>Cheers,<br>Ralf<br><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>
<div><div><div><div>
        </div>
      </div>Jaime has already pointed out that I should email this list (I hope I managed to email the list in<br></div>the right way - never used a mailing list before) for you to notice the pull request. He also pointed<br>



out some improvements of my proposed implementation (not forcing consistent dtype), but before<br>I go on and make changes I might need to ask you guys if this is really something you are interested in including?<br><br>


</div>
Best regards,<br></div>/Björn Dahlgren<br></div>
</div><br></div>
<br>_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
<br></blockquote></div><br></div></div>