Re: [Numpy-discussion] Scalar casting rules use-case reprise

2013-01-04 Thread Nathaniel Smith
On Fri, Jan 4, 2013 at 11:09 AM, Matthew Brett wrote: > In any case, can anyone remember the original use-cases well enough to > record them for future decision making? Heh. Everything new is old again. Here's a discussion from 2002 which quotes the rationale: http://mail.scipy.org/pipermail/nu

Re: [Numpy-discussion] Scalar casting rules use-case reprise

2013-01-04 Thread Olivier Delalleau
2013/1/4 Nathaniel Smith : > On Fri, Jan 4, 2013 at 11:09 AM, Matthew Brett > wrote: >> Hi, >> >> Reading the discussion on the scalar casting rule change I realized I >> was hazy on the use-cases that led to the rule that scalars cast >> differently from arrays. >> >> My impression was that the

Re: [Numpy-discussion] Scalar casting rules use-case reprise

2013-01-04 Thread Dag Sverre Seljebotn
On 01/04/2013 02:46 PM, Nathaniel Smith wrote: > On Fri, Jan 4, 2013 at 11:09 AM, Matthew Brett > wrote: >> Hi, >> >> Reading the discussion on the scalar casting rule change I realized I >> was hazy on the use-cases that led to the rule that scalars cast >> differently from arrays. >> >> My impr

Re: [Numpy-discussion] Scalar casting rules use-case reprise

2013-01-04 Thread Nathaniel Smith
On Fri, Jan 4, 2013 at 11:09 AM, Matthew Brett wrote: > Hi, > > Reading the discussion on the scalar casting rule change I realized I > was hazy on the use-cases that led to the rule that scalars cast > differently from arrays. > > My impression was that the primary use-case was for lower-precisio

[Numpy-discussion] Scalar casting rules use-case reprise

2013-01-04 Thread Matthew Brett
Hi, Reading the discussion on the scalar casting rule change I realized I was hazy on the use-cases that led to the rule that scalars cast differently from arrays. My impression was that the primary use-case was for lower-precision floats. That is, when you have a large float32 arr, you do not wa