warp.sign ========= .. function:: warp._src.lang.sign(x: Scalar) -> Scalar .. hlist:: :columns: 8 * Kernel Compute the sign of ``x``. :returns: -1 if ``x`` < 0 and 1 otherwise. .. function:: warp._src.lang.sign(x: Vector[Scalar,Any]) -> Scalar :noindex: .. hlist:: :columns: 8 * Kernel * Differentiable Compute the sign of ``x``. :returns: -1 for negative elements of ``x`` and 1 otherwise.