Re: [Numpy-discussion] dimensions too large error

2008-03-20 Thread David Cournapeau
On Fri, 2008-03-14 at 18:00 -0700, Dinesh B Vadhia wrote: > For the following code: > > I = 18000 > J = 33000 > filename = 'ij.txt' > A = scipy.asmatrix(numpy.empty((I,J), dtype=numpy.int)) You are asking to create a matrix of more than 2 Gb, which is unlikely to work on a 32 bits OS (by default

Re: [Numpy-discussion] dimensions too large error

2008-03-14 Thread Anne Archibald
On 14/03/2008, Dinesh B Vadhia <[EMAIL PROTECTED]> wrote: > For the following code: > > I = 18000 > J = 33000 > filename = 'ij.txt' > A = scipy.asmatrix(numpy.empty((I,J), dtype=numpy.int)) > for line in open(filename, 'r'): > etc. > > The following message appears: > > Traceback (most

Re: [Numpy-discussion] dimensions too large error

2008-03-14 Thread Stéfan van der Walt
Hi Dinesh On Fri, Mar 14, 2008 at 6:00 PM, Dinesh B Vadhia <[EMAIL PROTECTED]> wrote: > For the following code: > > I = 18000 > J = 33000 > filename = 'ij.txt' > A = scipy.asmatrix(numpy.empty((I,J), dtype=numpy.int)) > for line in open(filename, 'r'): > etc. > > The following message

[Numpy-discussion] dimensions too large error

2008-03-14 Thread Dinesh B Vadhia
For the following code: I = 18000 J = 33000 filename = 'ij.txt' A = scipy.asmatrix(numpy.empty((I,J), dtype=numpy.int)) for line in open(filename, 'r'): etc. The following message appears: Traceback (most recent call last): File "C:\...\py", line 362, in A= scipy.asmatri