[Numpy-discussion] copying array to itself
Henry Gomersall
heng at cantab.net
Thu May 3 04:51:34 EDT 2012
On Wed, 2012-05-02 at 12:58 -0700, Stéfan van der Walt wrote:
> On Wed, May 2, 2012 at 9:03 AM, Henry Gomersall <heng at cantab.net>
> wrote:
> > Is this some nuance of the way numpy does things? Or am I missing
> some
> > stupid bug in my code?
>
> Try playing with the parameters of the following code:
>
<snip>
>
> For small values of sz this typically works, but as soon as numpy
> needs to buffer strange things happen because you are reading from
> memory locations that you've already written to.
Right, so this is expected behaviour then. Is this documented somewhere?
It strikes me that this is pretty unexpected behaviour.
Henry
More information about the NumPy-Discussion
mailing list