Hi, I was wondering if the numpy function 'isinf' should return True for complex infinity. I encountered the following behavior that could be considered a bug:
>>> import numpy as N >>> N.isinf(1j*N.inf) True >>> 1j/(N.array(1)-1) (nannanj) >>> N.isinf(1j/(N.array(1)-1)) False >>> 1j/(N.array([1])-1) array([ nan +nanj]) >>> N.isinf(1j/(N.array([1])-1)) array([False], dtype=bool) Thanks, Kilian -- Kilian Koepsell Redwood Center for Theoretical Neuroscience Helen Wills Neuroscience Institute, UC Berkeley 132 Barker Hall, #3190, Berkeley, CA 94720-3190 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion