[Numpy-discussion] dimensions too large error
Dinesh B Vadhia
dineshbvadhia@hotmail....
Fri Mar 14 20:00:58 CDT 2008
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 <module>
A= scipy.asmatrix(numpy.empty((I,J), dtype=numpy.int))
ValueError: dimensions too large.
Is there a limit to array/matrix dimension sizes?
Btw, for numpy array's, ascontiguousarray() is available to set aside contiguous memory. Is there an equivalent for scipy matrix ie. an ascontiguousmatrix()?
Dinesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080314/0a0a548b/attachment.html
More information about the Numpy-discussion
mailing list