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

Sturla Molden sturla at molden.no
Wed Sep 2 11:23:23 EDT 2009


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

  



More information about the NumPy-Discussion mailing list