FW: [Numpy-discussion] Bug: extremely misleading array behavior

Perry Greenfield perry at stsci.edu
Fri Jun 7 14:42:02 EDT 2002

<Konrad Hinsen writes>:

> I still believe that the best solution is to define scalar data types
> corresponding to all array element types. As far as I can see, this
> doesn't have any of the disadvantages of the other solutions that
> have been proposed until now.
If x was a Float32 array how would the following not be
promoted to a Float64 array

y = x + 1.

If you are proposing something like

y = x + Float32(1.)

it would work, but it sure leads to some awkward expressions.


More information about the NumPy-Discussion mailing list