Re: [Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?

2006-09-21 Thread Matthew Brett
Hi, It's in the array interface specification: http://numpy.scipy.org/array_interface.shtml I was interested in the 't' (bitfield) type - is there an example of usage somewhere? In [13]: dtype('t8') ---

Re: [Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?

2006-09-21 Thread Travis Oliphant
Matthew Brett wrote: Hi, It's in the array interface specification: http://numpy.scipy.org/array_interface.shtml I was interested in the 't' (bitfield) type - is there an example of usage somewhere? No, It's not implemented in NumPy. It's just part of the array interface

[Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?

2006-09-19 Thread Sebastian Haase
Hi, What are the possible values of arr.dtype.kind ? It seems that signed and unsigned are considered to be the same kind arr=N.arange(10,dtype=N.uint) arr.dtype.kind 'i' arr.dtype.itemsize 8 (OK - this is just showing off our amd64 linux ;-) ) How can I distinguish signed from unsigned

Re: [Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?

2006-09-19 Thread Travis Oliphant
Sebastian Haase wrote: Hi, What are the possible values of arr.dtype.kind ? It seems that signed and unsigned are considered to be the same kind arr=N.arange(10,dtype=N.uint) arr.dtype.kind 'i' arr.dtype.itemsize 8 (OK - this is just showing off our amd64

Re: [Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?

2006-09-19 Thread Scott Ransom
On Tuesday 19 September 2006 14:46, Travis Oliphant wrote: Sebastian Haase wrote: Hi, What are the possible values of arr.dtype.kind ? It seems that signed and unsigned are considered to be the same kind arr=N.arange(10,dtype=N.uint) arr.dtype.kind 'i' arr.dtype.itemsize

Re: [Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?

2006-09-19 Thread Scott Ransom
Can anybody on a 64-bit system confirm? I'm on 64-bit Debian: In [11]: arr=N.arange(10,dtype=N.uint) In [12]: arr.dtype.kind Out[12]: 'u' In [13]: arr.dtype.itemsize Out[13]: 4 In [14]: arr=N.arange(10,dtype=N.long) In [15]: arr.dtype.kind Out[15]: 'i' In [16]:

Re: [Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?

2006-09-19 Thread Sebastian Haase
OK - I'm really sorry !! I also get 'u' -- I had a typo there ... But what is the complete list of kind values ? -Sebastian On Tuesday 19 September 2006 11:54, Scott Ransom wrote: Can anybody on a 64-bit system confirm? I'm on 64-bit Debian: In [11]: arr=N.arange(10,dtype=N.uint)

Re: [Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?

2006-09-19 Thread Travis Oliphant
Sebastian Haase wrote: OK - I'm really sorry !! I also get 'u' -- I had a typo there ... But what is the complete list of kind values ? It's in the array interface specification: http://numpy.scipy.org/array_interface.shtml -Travis