On Tue, Dec 6, 2011 at 7:53 AM, Matthew Brett <[email protected]> wrote:
> Hi,
>
> On Tue, Dec 6, 2011 at 4:45 AM, Skipper Seabold <[email protected]> wrote:
>> Hi,
>>
>> Is this intended?
>>
>> [~/]
>> [1]: np.result_type(np.uint, np.int)
>> [1]: dtype('float64')
>
> I would guess so - if your system ints are 64 bit.  int64 can't
> contain the range for uint64, nor can uint64 contain all int64,  If
> there had been a larger int type, it would promote to int, I believe.
> At least on my system:
>
> In [4]: np.result_type(np.int32, np.uint32)
> Out[4]: dtype('int64')
>

Makes sense. Thanks,

Skipper
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to