Adding numpy isclose & fixing allclose

There seems to be no speed up compared to numpy (for both isclose and allclose). Any idea why?
For comparisons between +/-inf and +/-inf. and NaN at the same time.

If you have `u=+inf & v=+inf` then `std::abs(u-v) > (atol + rtol *
std::abs(v)))` is going to return false because of NaN comparison.
On 24/07/2014 02:42, serge-sans-paille wrote:
>
> In pythran/pythonic/numpy/allclose.hpp:
>
> > @@ -14,7 +14,8 @@ namespace pythonic {
> >                  for(; begin != end; ++begin, ++ibegin) {
> >                      auto u = *begin;
> >                      auto v = *ibegin;
> > -                    if(nt2::is_nan(v) || nt2::is_nan(u) || std::abs(u-v) > (atol + rtol * std::abs(v))) {
> > +                    if(((!nt2::is_finite(u) || !nt2::is_finite(v)) && u != v) ||  // Infinite and NaN cases
> > +                        std::abs(u-v) > (atol + rtol * std::abs(v))) {
>
> great!
> What's the use of |u != v| ? it's a short circuit?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/serge-sans-paille/pythran/pull/280/files#r15302699>.
>