Re: [Numpy-discussion] better error message possible?

2012-06-01 Thread Chris Withers
On 01/06/2012 16:39, Benjamin Root wrote: > > > > >>> import numpy > > >>> numpy.zeros(10)[-123] > > Traceback (most recent call last): > > File "", line 1, in > > IndexError: index out of bounds > > > > ...could say this: > > > > >>> numpy.zeros(10)[

Re: [Numpy-discussion] Error when multiplying large sparse matrices

2012-06-01 Thread Pauli Virtanen
01.06.2012 20:45, Jeremy Lecoeur kirjoitti: > I have been using the sparse matrix tools for a while to do all sort of > things and, using the same code that was working just fine, I now > encounter a problem when trying . I do have very large sparse matrices > and when i multiplying them the num

[Numpy-discussion] Error when multiplying large sparse matrices

2012-06-01 Thread Jeremy Lecoeur
Hi, I have been using the sparse matrix tools for a while to do all sort of things and, using the same code that was working just fine, I now encounter a problem when trying . I do have very large sparse matrices and when i multiplying them the number of non zeros exceed the max value of an in

Re: [Numpy-discussion] better error message possible?

2012-06-01 Thread Chris Barker
>> On Fri, Jun 1, 2012 at 10:46 AM, Chris Withers >> > Any reason why this: >> > >> >  >>> import numpy >> >  >>> numpy.zeros(10)[-123] >> > Traceback (most recent call last): >> >   File "", line 1, in >> > IndexError: index out of bounds >> > >> > ...could say this: >> > >> >  >>> numpy.zeros(

Re: [Numpy-discussion] better error message possible?

2012-06-01 Thread Benjamin Root
On Fri, Jun 1, 2012 at 9:14 AM, Nathaniel Smith wrote: > On Fri, Jun 1, 2012 at 10:46 AM, Chris Withers > wrote: > > Hi All, > > > > Any reason why this: > > > > >>> import numpy > > >>> numpy.zeros(10)[-123] > > Traceback (most recent call last): > > File "", line 1, in > > IndexError: ind

Re: [Numpy-discussion] better error message possible?

2012-06-01 Thread Nathaniel Smith
On Fri, Jun 1, 2012 at 10:46 AM, Chris Withers wrote: > Hi All, > > Any reason why this: > >  >>> import numpy >  >>> numpy.zeros(10)[-123] > Traceback (most recent call last): >   File "", line 1, in > IndexError: index out of bounds > > ...could say this: > >  >>> numpy.zeros(10)[-123] > Traceb

[Numpy-discussion] better error message possible?

2012-06-01 Thread Chris Withers
Hi All, Any reason why this: >>> import numpy >>> numpy.zeros(10)[-123] Traceback (most recent call last): File "", line 1, in IndexError: index out of bounds ...could say this: >>> numpy.zeros(10)[-123] Traceback (most recent call last): File "", line 1, in IndexError: -123 is out o