[Numpy-discussion] numpy.sqrt behaving differently on MacOS Lion
Ilan Schnell
ischnell at enthought.com
Wed Jul 27 13:17:53 EDT 2011
MacOS Lion:
>>> numpy.sqrt([complex(numpy.nan, numpy.inf)])
array([ nan+infj])
Other all system:
array([ inf+infj])
This causes a few numpy tests to fail on Lion. The numpy
was not compiled using the new LLVM based gcc, it is the
same numpy binary I used on other MacOS systems, which
was compiled using gcc-4.0.1. However on Lion it is linked
to Lions LLVM based gcc runtime, which apparently has some
different behavior when it comes to such strange complex
values.
- Ilan
More information about the NumPy-Discussion
mailing list