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 and b can differ. Default is 1.登录查看完整内容