[SciPy-user] temporary copies for in-place array modification?
Nathan Bell
wnbell at gmail.com
Tue Jul 29 03:13:48 EDT 2008
On Tue, Jul 29, 2008 at 12:31 AM, Alan G Isaac <aisaac at american.edu> wrote:
>> Maybe. The result is dependent on the memory layout of a.
>
> What would be the right test for this being ok?
> And would you give an example where this will fail?
> I assumed the implicit loop would always be over the
> elements in the order they appear in the array.
I wouldn't write code that depended on such details. Doing so means
that any attempt to parallelize the implementation will break your
code in subtle, potentially non-deterministic ways.
--
Nathan Bell wnbell at gmail.com
http://graphics.cs.uiuc.edu/~wnbell/
More information about the SciPy-User
mailing list