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,
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(b[0])
>> #
>> __version__
>> '1.0.5.dev4767'
>
>
> Dmitrey noted an unexpected down cast (above).
> Is there a reason for
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(b[0])
> #
> __version__
> '1.0.5.dev4767'
Dmitrey noted an unexpected down cast (above).
Is there a reason for it?
Or should there be a ticket?
Thank