cupy.sign#

cupy.sign = <ufunc 'cupy_sign'>#

Elementwise sign function.

It returns -1, 0, or 1 depending on the sign of the input.

See also

numpy.sign