ke, 2010-07-21 kello 10:46 +0200, David Cournapeau kirjoitti: [clip: assert nulps] > I think we should go toward using those almost everywhere we need > floating point comparison in testing,
I think we also need an assertion function that behaves like np.allclose -- the ULPs are somewhat unintuitive to work with, and an atol/rtol combination also gets the job done, so some people might prefer that. There's `assert_tol_equal` in scipy.special tests that could just be copied to numpy.testing. Pauli _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion