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

"V. Armando Solé" sole at esrf.fr
Wed Sep 2 05:10:46 EDT 2009


Gael Varoquaux wrote:
> You cannot in the numpy memory model. The numpy memory model defines an
> array as something that has regular strides to jump from an element to
> the next one.
>   
I expected problems in the suggested case (concatenating columns) but I 
did not expect the problem would be so severe to affect the case of row 
concatenation.

I guess I am still considering a 2D array as an array of pointers and 
that does not apply to numpy arrays.

Thanks for the info.

Armando




More information about the NumPy-Discussion mailing list