From: Charles R H. <cha...@gm...> - 2006-11-02 05:55:42
|
On 11/1/06, Robert Kern <rob...@gm...> wrote: > > Tim Hochberg wrote: > > Travis Oliphant wrote: <snip> However, whether or not float32 arrays operated with Python float scalars > give > float32 or float64 arrays is tangential to my question. Does anyone > actually > think that a Python float operated with a boolean array should give a > float32 > result? Must we *up*cast a boolean array to float64 to preserve the > precision of > the scalar? Probably doesn't matter most of the time, I suppose, who is going to check? I tend to think doubles because they are a bit faster on the x86 architecture and because they are a pretty common default. Chuck |