[Numpy-discussion] numpy slices limited to 32 bit values?
Charles R Harris
charlesr.harris at gmail.com
Sun May 17 11:14:40 EDT 2009
On Sun, May 17, 2009 at 8:51 AM, Charles R Harris <charlesr.harris at gmail.com
> wrote:
> Hi Glen,
>
> On Sat, May 16, 2009 at 11:24 PM, Glenn Tarbox, PhD <glenn at tarbox.org>wrote:
>
>> Today at Sage Days we tried slices on a few large arrays (no mmap) and
>> found that slicing breaks on arrays somewhere between 2.0e9 and 2.5e9
>> elements. The failure mode is the same, no error thrown, basically nothing
>> happens
>>
>> This was on one of the big sage machines. I don't know the specific OS /
>> CPU but it was definitely 64 bit and lots of available memory etc.
>>
>
> Can you try slicing with an explicit upper bound? Something like a[:n] = 1,
> where n is the size of the array.
>
And maybe some things like a[n:n+1] = 1, which should only set a single
element and might save some time ;)
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090517/3786d507/attachment.html>
More information about the NumPy-Discussion
mailing list