[Numpy-discussion] Functions for indexing into certain parts of an array (2d)

Alan G Isaac aisaac at american.edu
Sat Jun 6 19:34:14 EDT 2009

On 6/6/2009 6:39 PM Robert Kern apparently wrote:
> Ah, that's the beauty of .flat; it takes care of that for you. .flat
> is not a view onto the memory directly. It is a not-quite-a-view onto
> what the memory *would* be if the array were contiguous and the memory
> directly reflected the layout as seen by Python.

Aha.  Thanks!

More information about the NumPy-Discussion mailing list