warp.select =========== .. function:: warp._src.lang.select(cond: bool, value_if_false: Any, value_if_true: Any) -> Any .. hlist:: :columns: 8 * Kernel * Differentiable Select between two arguments, if ``cond`` is ``False`` then return ``value_if_false``, otherwise return ``value_if_true``. .. versionremoved:: 1.10 Use :func:`where` instead, which has the more intuitive argument order: ``where(cond, value_if_true, value_if_false)``. .. deprecated:: 1.7 .. function:: warp._src.lang.select(cond: int8, value_if_false: Any, value_if_true: Any) -> Any :noindex: .. hlist:: :columns: 8 * Kernel * Differentiable Select between two arguments, if ``cond`` is ``False`` then return ``value_if_false``, otherwise return ``value_if_true``. .. versionremoved:: 1.10 Use :func:`where` instead, which has the more intuitive argument order: ``where(cond, value_if_true, value_if_false)``. .. deprecated:: 1.7 .. function:: warp._src.lang.select(cond: uint8, value_if_false: Any, value_if_true: Any) -> Any :noindex: .. hlist:: :columns: 8 * Kernel * Differentiable Select between two arguments, if ``cond`` is ``False`` then return ``value_if_false``, otherwise return ``value_if_true``. .. versionremoved:: 1.10 Use :func:`where` instead, which has the more intuitive argument order: ``where(cond, value_if_true, value_if_false)``. .. deprecated:: 1.7 .. function:: warp._src.lang.select(cond: int16, value_if_false: Any, value_if_true: Any) -> Any :noindex: .. hlist:: :columns: 8 * Kernel * Differentiable Select between two arguments, if ``cond`` is ``False`` then return ``value_if_false``, otherwise return ``value_if_true``. .. versionremoved:: 1.10 Use :func:`where` instead, which has the more intuitive argument order: ``where(cond, value_if_true, value_if_false)``. .. deprecated:: 1.7 .. function:: warp._src.lang.select(cond: uint16, value_if_false: Any, value_if_true: Any) -> Any :noindex: .. hlist:: :columns: 8 * Kernel * Differentiable Select between two arguments, if ``cond`` is ``False`` then return ``value_if_false``, otherwise return ``value_if_true``. .. versionremoved:: 1.10 Use :func:`where` instead, which has the more intuitive argument order: ``where(cond, value_if_true, value_if_false)``. .. deprecated:: 1.7 .. function:: warp._src.lang.select(cond: int32, value_if_false: Any, value_if_true: Any) -> Any :noindex: .. hlist:: :columns: 8 * Kernel * Differentiable Select between two arguments, if ``cond`` is ``False`` then return ``value_if_false``, otherwise return ``value_if_true``. .. versionremoved:: 1.10 Use :func:`where` instead, which has the more intuitive argument order: ``where(cond, value_if_true, value_if_false)``. .. deprecated:: 1.7 .. function:: warp._src.lang.select(cond: uint32, value_if_false: Any, value_if_true: Any) -> Any :noindex: .. hlist:: :columns: 8 * Kernel * Differentiable Select between two arguments, if ``cond`` is ``False`` then return ``value_if_false``, otherwise return ``value_if_true``. .. versionremoved:: 1.10 Use :func:`where` instead, which has the more intuitive argument order: ``where(cond, value_if_true, value_if_false)``. .. deprecated:: 1.7 .. function:: warp._src.lang.select(cond: int64, value_if_false: Any, value_if_true: Any) -> Any :noindex: .. hlist:: :columns: 8 * Kernel * Differentiable Select between two arguments, if ``cond`` is ``False`` then return ``value_if_false``, otherwise return ``value_if_true``. .. versionremoved:: 1.10 Use :func:`where` instead, which has the more intuitive argument order: ``where(cond, value_if_true, value_if_false)``. .. deprecated:: 1.7 .. function:: warp._src.lang.select(cond: uint64, value_if_false: Any, value_if_true: Any) -> Any :noindex: .. hlist:: :columns: 8 * Kernel * Differentiable Select between two arguments, if ``cond`` is ``False`` then return ``value_if_false``, otherwise return ``value_if_true``. .. versionremoved:: 1.10 Use :func:`where` instead, which has the more intuitive argument order: ``where(cond, value_if_true, value_if_false)``. .. deprecated:: 1.7 .. function:: warp._src.lang.select(arr: Array[Any], value_if_false: Any, value_if_true: Any) -> Any :noindex: .. hlist:: :columns: 8 * Kernel * Differentiable Select between two arguments, if ``arr`` is null then return ``value_if_false``, otherwise return ``value_if_true``. .. versionremoved:: 1.10 Use :func:`where` instead, which has the more intuitive argument order: ``where(arr, value_if_true, value_if_false)``. .. deprecated:: 1.7