numpy.testing.assert_array_max_ulp()
numpy.testing.assert_array_max_ulp
-
numpy.testing.assert_array_max_ulp(a, b, maxulp=1, dtype=None)
[source] -
Check that all items of arrays differ in at most N Units in the Last Place.
Parameters: a, b : array_like
Input arrays to be compared.
maxulp : int, optional
The maximum number of units in the last place that elements of
a
andb
can differ. Default is 1.