From: Mathew Y. <ma...@co...> - 2002-09-26 23:12:54
|
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 |