[Numpy-discussion] atol in allclose

Matthew Brett matthew.brett at gmail.com
Tue Nov 28 19:30:36 CST 2006


Hi,

Sorry to keep cluttering the list, but I was a bit surprised by this
behavior of allclose:

In [25]:allclose([1.0], [1.0], rtol=0)
Out[25]:True

In [26]:allclose([1.0], [1.0], rtol=0, atol=0)
Out[26]:False

The docstring seems to imply that atol will not be used in this
comparison - or did I misunderstand?

Thanks,

Matthew


More information about the Numpy-discussion mailing list