<br><br><div class="gmail_quote">On Sat, Apr 23, 2011 at 11:09 AM, Bruce Southey <span dir="ltr"><<a href="mailto:bsouthey@gmail.com">bsouthey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Sat, Apr 23, 2011 at 9:58 AM, Till Stensitzki <<a href="mailto:mail.till@gmx.de">mail.till@gmx.de</a>> wrote:<br>
><br>
>> Do you also have an earlier version of numpy installed? As David says, this<br>
>>should raise an error for recent numpy and<br>
>>I'm wondering if you are inadvertently<br>
>>running an earlier version.Chuck<br>
><br>
><br>
> I only have one python installation and<br>
> numpy.__version__ shows 1.6b.<br>
> I could reinstall numpy, if it would help.<br>
><br>
> _______________________________________________<br>
> NumPy-Discussion mailing list<br>
> <a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
><br>
<br>
</div></div>Hi,<br>
I can get this with 64-bit Win 7, 32-bit Python 2.6, 2.7 (below) and<br>
3.1 and numpy 1.6b (fresh install)  IDLE and the command line. I can<br>
also confirm the 'ValueError' with Python2.6 and numpy 1.51 on the<br>
same system.<br>
<br>
Actually this is 'weird' when printing and crashed with the range -<br>
accessing unassigned memory?<br>
A smaller array gives an numpy error or memory error in idle.<br>
<br>
Bruce<br>
<div class="im"><br>
<br>
>>> import numpy as np<br>
>>> x=np.zeros((262144, 262144))<br>
</div>>>> x<br>
array([], shape=(262144, 262144), dtype=float64)<br>
>>> x[0,0]<br>
2.1453735050108555e-314<br>
>>> x[1:10,1:10]<br>
<br>
>>> ================================ RESTART ================================<br>
>>> import numpy as np<br>
<br>
>>> x=np.zeros((26214, 26214))<br>
<br>
Traceback (most recent call last):<br>
  File "<pyshell#7>", line 1, in <module><br>
    x=np.zeros((26214, 26214))<br>
ValueError: array is too big.<br>
>>><br>
>>> x=np.zeros((262144, 26214))<br>
<br>
Traceback (most recent call last):<br>
  File "<pyshell#8>", line 1, in <module><br>
    x=np.zeros((262144, 26214))<br>
MemoryError<br>
<div><div></div><div class="h5">_____</div></div></blockquote><div><br>This was fixed before, maybe it got broken again. Since this looks windows specific, I'm guessing it has something to do with the size of long being 32 bits.<br>
<br>The previous problem was integer overflow when multiplying the dimensions together to get the array size when repeated divisions of the maximum size should have be used instead.<br><br>Chuck <br></div><br></div>