cupy.testing.assert_array_almost_equal_nulp¶
-
cupy.testing.
assert_array_almost_equal_nulp
(x, y, nulp=1)[source]¶ Compare two arrays relatively to their spacing.
Parameters: - x (numpy.ndarray or cupy.ndarray) – The actual object to check.
- y (numpy.ndarray or cupy.ndarray) – The desired, expected object.
- nulp (int) – The maximum number of unit in the last place for tolerance.