cupy.nextafter#

cupy.nextafter(x1, x2, /, out=None, \*, casting='same_kind', dtype=None)#

Computes the nearest neighbor float values towards the second argument.

Note

For values that are close to zero (or denormal numbers), results of cupy.nextafter() may be different from those of numpy.nextafter(), because CuPy sets -ftz=true.

See also

numpy.nextafter