[Numpy-discussion] Binary ufuncs: minimum
Tue May 27 10:09:41 CDT 2008
On Tue, May 27, 2008 at 2:51 AM, Stéfan van der Walt <firstname.lastname@example.org> wrote:
> Did this change recently?
> In : np.__version__
> Out: '1.1.0.dev5211'
> In : np.minimum(np.uint8(164), np.uint64(12807)).dtype
> Out: dtype('uint64')
> But yes, that looks like it should return a uint8.
While it is possible for the result to fit into uint8, that would
break the generic ufunc casting rules.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion