warp.clamp ========== .. function:: warp._src.lang.clamp(x: Scalar, low: Scalar, high: Scalar) -> Scalar .. hlist:: :columns: 8 * Kernel * Differentiable Clamp the value of ``x`` to the range [low, high]. Equivalent to ``wp.min(wp.max(low, x), high)``. On float types this means NaN values of ``x`` produce ``wp.min(low, high)`` rather than propagating NaN.