I just fell over this:

>>> np.min(np.inf,1000)
1.#INF
>>> min(np.inf,1000)
1000

>>> np.max(-np.inf,1000)
-1.#INF
>>> max(-np.inf,1000)
1000

Is this known behavior?

I finally realized, that I have to do this (the doc string says array
like)
>>> np.min([np.inf,1000])
1000.0
>>> np.max([-np.inf,1000])
1000.0

>>> np.version.version
'1.2.0rc2'
Josef
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to