[Numpy-discussion] copy on demand
John J. Lee
jjl at pobox.com
Fri Jun 14 12:22:04 CDT 2002
On 14 Jun 2002, Alexander Schmolck wrote:
> The fact that you can never really be sure whether you can actually use
> ``.flat``, without checking beforehand if the array is in fact
> contiguous (I don't think there are many guarantees about something
> being contiguous, or are there?) and that ravel will always work but has
> a huge overhead, suggests to me that something is not quite right.
Why does ravel have a huge overhead? It seems it already doesn't copy
unless required: search for 'Chacking' -- including the mis-spelling -- in
or start up your Python interpreter, if you're less lazy than me.
More information about the Numpy-discussion