[Numpy-discussion] `allclose` vs `assert_allclose`

Pauli Virtanen pav at iki.fi
Fri Jul 18 15:43:05 EDT 2014


18.07.2014 22:13, Chris Barker kirjoitti:
[clip]
> but an appropriate rtol would work there too. If only zero testing is
> needed, then atol=0 makes sense as a default. (or maybe atol=eps)

There's plenty of room below eps, but finfo(float).tiny ~ 3e-308 (or
some big multiple) is also reasonable in the scale-freeness sense.





More information about the NumPy-Discussion mailing list