cupy.testing.assert_array_max_ulp#
- cupy.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 (numpy.ndarray or cupy.ndarray) – The actual object to check.
b (numpy.ndarray or cupy.ndarray) – The desired, expected object.
maxulp (int) – The maximum number of units in the last place that elements of
a
andb
can differ.dtype (numpy.dtype) – Data-type to convert
a
andb
to if given.
See also