cupy.nanmin#

cupy.nanmin(a, axis=None, out=None, keepdims=False)[source]#

Returns the minimum of an array along an axis ignoring NaN.

When there is a slice whose elements are all NaN, a RuntimeWarning is raised and NaN is returned.

Parameters:
  • a (cupy.ndarray) – Array to take the minimum.

  • axis (int) – Along which axis to take the minimum. The flattened array is used by default.

  • out (cupy.ndarray) – Output array.

  • keepdims (bool) – If True, the axis is remained as an axis of size one.

Returns:

The minimum of a, along the axis if specified.

Return type:

cupy.ndarray

Warning

This function may synchronize the device.

See also

numpy.nanmin()