![](https://secure.gravatar.com/avatar/90b570d6a05bef5779fd32080fab0064.jpg?s=120&d=mm&r=g)
Sept. 26, 2002
4:13 p.m.
Hmmm, aparently, I can cast a long array to a double array but not to a float array. Check out the following code from arrayobject.c (Numeric 22.0) [this is a switch on the type being casted from] case PyArray_LONG: /*Shouldn't allow Longs to be cast to Ints, not safe on 64-bit machines!*/ return (totype >= PyArray_INT) && (totype != PyArray_FLOAT); This makes absolutely no sense to me. Is this a bug? Mathew -- M47h3w `/34735
8179
Age (days ago)
8179
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mathew Yeates