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: |
|
---|---|
Returns: |
|
Raises: |
|
See also
assert_array_almost_equal_nulp
>>> a = np.linspace(0., 1., 100) >>> res = np.testing.assert_array_max_ulp(a, np.arcsin(np.sin(a)))
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.testing.assert_array_max_ulp.html