Re: [Numpy-discussion] [RFC] new function for floating point comparison

2009-10-30 Thread David Cournapeau
Robert Kern wrote: > > That sounds good. Another worthwhile addition would be nextafter(). > > http://www.opengroup.org/onlinepubs/95399/functions/nextafter.html > Ah, I did not know about this one. I have implemented it and committed it. One issue is that it will cause failures on platform

Re: [Numpy-discussion] [RFC] new function for floating point comparison

2009-10-29 Thread Robert Kern
On Thu, Oct 29, 2009 at 02:17, David Cournapeau wrote: > Hi, > >    I have added a couple of utilities for floating point comparison, to > be used in unit tests mostly, and would like some comments, especially > from people knowledgeable about floating point. > > http://github.com/cournape/numpy/t

[Numpy-discussion] [RFC] new function for floating point comparison

2009-10-29 Thread David Cournapeau
Hi, I have added a couple of utilities for floating point comparison, to be used in unit tests mostly, and would like some comments, especially from people knowledgeable about floating point. http://github.com/cournape/numpy/tree/new_ulp_comp The main difference compared to other functions i