Erin Sheldon wrote:
>y=x.copy()
>N.cos(x,y)
> but wouldn't it be better to just preserve the type through functions
> like cos? Or does this cause repercussions in other places?
>
This causes repercussions in other places. This can be re-visited for
1.1, but for now, all ufuncs that
Hi all-
The types of objects are not preserved through mathematical operations
when numpy scalars are involved. This has been discussed on this list
before. I think the following error is problematic, however.
>>> x=N.array(0.1)
>>> type(x)
>>> y = N.cos(x)
# the type has changed
>>> type(y)