[Numpy-discussion] numpy slices limited to 32 bit values?

Glenn Tarbox, PhD glenn at tarbox.org
Thu May 14 10:40:58 EDT 2009


On Thu, May 14, 2009 at 2:16 AM, Gael Varoquaux <
gael.varoquaux at normalesup.org> wrote:

> On Thu, May 14, 2009 at 02:13:23AM -0700, Glenn Tarbox, PhD wrote:
> >    On Thu, May 14, 2009 at 1:43 AM, Gael Varoquaux
> >    <[1]gael.varoquaux at normalesup.org> wrote:
>
> >      On Thu, May 14, 2009 at 01:31:45AM -0700, Glenn Tarbox, PhD wrote:
> >      >      I've been working on some other things lately and that number
> >      seemed
> >      >      related to 2^32... now that I look more closely, I don't know
> >      where that
> >      >      number comes from.
>
> >      Is your OS 64bit?
>
> >    Yes, Ubuntu 9.04 x86_64
>
> Hum, I am wondering: could it be that Sage has not been compiled in
> 64bits? That number '32' seems to me to point toward a 32bit pointer
> issue (I may be wrong).


The other tests I posted indicate everything else is working... For example,
np.sum(fp) runs over the full set of 1e10 doubes and seems to work fine.

Also, while my first thought was about 2^32, Chuck Harris's reply kinda put
that to bed.  Where 1410065408.0 comes from may involve e or PI (at least
thats how we reverse engineered answers when I was in college :-)

-glenn


>
> Gaël
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>


-- 
Glenn H. Tarbox, PhD ||  206-274-6919
http://www.tarbox.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090514/79009b7d/attachment.html>


More information about the NumPy-Discussion mailing list