jax.numpy.minimum(x, y, /)[source]#

Element-wise minimum of array elements.

LAX-backend implementation of numpy.minimum().

Original docstring below.

Compare two arrays and return a new array containing the element-wise minima. If one of the elements being compared is a NaN, then that element is returned. If both elements are NaNs then the first is returned. The latter distinction is important for complex NaNs, which are defined as at least one of the real or imaginary parts being a NaN. The net effect is that NaNs are propagated.


y – The minimum of x1 and x2, element-wise. This is a scalar if both x1 and x2 are scalars.

Return type:

ndarray or scalar

  • x (jax.typing.ArrayLike)

  • y (jax.typing.ArrayLike)