[SciPy-user] ufunc question

Steve Sullivan <Steve Sullivan sullivan at mathcom.com
Wed Apr 13 10:24:42 EDT 2005


Why does the scipy ufunc "greater" differ from Numeric ...
and what is the 'b' in scipy's result?

>>> import Numeric, scipy
>>> Numeric.greater( [1,2,3,4,5], 2)
array([0, 0, 1, 1, 1])
>>> scipy.greater( [1,2,3,4,5], 2)
array([0, 0, 1, 1, 1],'b')

>>> scipy.info(scipy.greater)
greater(x,y) is array of 1's where x > y, 0 otherwise.

I looked for more complete docs on scipy's version, but found none.
Many thanks,

Steve


-- 

========================================
Steve Sullivan    sullivan at mathcom.com

http://www.mathcom.com    303-494-7115
========================================




More information about the SciPy-User mailing list