[Numpy-discussion] 64-bit numpy questions?

2009-03-03 Thread Todd Miller
Hi, I've been looking at a 64-bit numpy problem we were having on Solaris: >>> a=numpy.zeros(0x18000,dtype='b1') >>> a.data Traceback (most recent call last): File "", line 1, in ValueError: size must be zero or positive A working fix seemed to be this: Index: arrayobject.c =

Re: [Numpy-discussion] numarray argmax problem

2007-02-09 Thread Todd Miller
Otto Tronarp wrote: > Hi, > > I have a problem with numarray.argmax, the following code > > import numarray as N > import sys > c = N.zeros((10, ), N.Float64) > while 1: > print 'B: ', sys.getrefcount(None) > l = N.argmax(c) > print 'A: ', sys.getrefcount(None) > print > > Dies