Check that all items of arrays differ in at most N Units in the Last Place.
Parameters : | a, b : array_like
maxulp : int, optional
dtype : dtype, optional
|
---|---|
Returns : | ret : ndarray
|
Raises : | AssertionError :
|
See also
Examples
>>> a = np.linspace(0., 1., 100)
>>> res = np.testing.assert_array_max_ulp(a, np.arcsin(np.sin(a)))