[Numpy-discussion] int and float ufunc?

Andrew P. Lentvorski bsder at mail.allcaps.org
Sun Oct 6 19:18:03 EDT 2002

Could someone explain the reason why int() and float() don't work as
ufuncs?  Is it just that someone needs to write the code, or is there some
subtlety at work that I am missing?

It took a bit of digging to go find the fact that what I wanted is
newarray = oldarray.astype(MagicNewTypeCode)


More information about the NumPy-Discussion mailing list