[Numpy-discussion] numarray equivalent to sign() function

Mike Zingale zingale at ucolick.org
Sun May 23 14:06:00 EDT 2004


Hi, I am in the process of converting some code from Numeric to numarray,
and it seems that numarray no longer has the sign() function -- is that
so?

ex:

sign(-30.0) = -1
sign(0) = 0
sign(1000) = 1

Is there a replacement?

Thanks,

Mike




More information about the NumPy-Discussion mailing list