[Numpy-discussion] Question about numpy.arange()

2010-05-01 Thread Gökhan Sever
Hello, Is "b" an expected value? I am suspecting another floating point arithmetic issue. I[1]: a = np.arange(1.6, 1.8, 0.1, dtype='float32') I[2]: a O[2]: array([ 1.6002, 1.7005], dtype=float32) I[3]: b = np.arange(1.7, 1.8, 0.1, dtype='float32') I[4]: b O[4]: array([ 1.7005, 1.

Re: [Numpy-discussion] proposing a "beware of [as]matrix()" warning

2010-05-01 Thread Jarrod Millman
On Wed, Apr 28, 2010 at 2:46 PM, David Warde-Farley wrote: > Would it be acceptable to retain the matrix class but not have it imported in > the default namespace, and have to import e.g. numpy.matlib to get at them? +1 Jarrod ___ NumPy-Discussion mai

Re: [Numpy-discussion] ndimage.label - howto force SWIG to use int32 - even on 64bit Linux ?

2010-05-01 Thread Stéfan van der Walt
Hi Sebastian On 27 April 2010 10:27, Sebastian Haase wrote: > Hi, > I wanted to write some C code to accept labels as they come from > ndimage.label. > For some reason ndimage.label produces its output as an int32 array - > even on my 64bit system . I've merged Thouis's patch to implement sciki