[Numpy-discussion] How to concatenate two arrayswithout duplicating memory?

Sebastian Haase seb.haase at gmail.com
Wed Sep 2 12:48:05 EDT 2009


I forgot to mention I also support transpose.
-S.


On Wed, Sep 2, 2009 at 5:23 PM, Sturla Molden<sturla at molden.no> wrote:
> Sebastian Haase skrev:
>> A mockarray is initialized with a list of nd-arrays. The result is a
>> mock array having one additional dimention "in front".
> This is important, because often in the case of  'concatenation' a real
> concatenation is not needed. But then there is a common tool called
> Matlab, which unlike Python has no concept of lists and make numerical
> programmers think they do. C = [A, B] is a horizontal concatenation in
> Matlab. Too much exposure to Matlab cripples the mind easily.
>
> Sturla
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



More information about the NumPy-Discussion mailing list