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

"V. Armando Solé" sole@esrf...
Wed Sep 2 04:10:46 CDT 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 

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.


More information about the NumPy-Discussion mailing list