Re: [Numpy-discussion] unexpected downcast

2008-02-13 Thread Christopher Barker
Robert Kern wrote: That's just what asfarray is designed to do. If you don't give it a dtype, it uses float64. For the record, it upcasts float32 arrays also. So why does it exist at all? Is is just syntactic sugar for: asarray(a, dtype=float64) Which kind of seems to be not worth it. If,

Re: [Numpy-discussion] unexpected downcast

2008-02-13 Thread Robert Kern
Alan G Isaac wrote: On Tue, 12 Feb 2008, dmitrey apparently wrote: from numpy import * a = array((1.0, 2.0), float128) b=asfarray(a) type(a[0]) #type 'numpy.float128' type(b[0]) #type 'numpy.float64' __version__ '1.0.5.dev4767' Dmitrey noted an unexpected down cast (above). Is