dpnp.min

dpnp.min(x1, axis=None, out=None, keepdims=False, initial=None, where=True)[source]

Return the minimum along a given axis.

Limitations

Input array is supported as dpnp.ndarray. Otherwise the function will be executed sequentially on CPU. Prameters out is supported only with default value None. Input array data types are limited by supported DPNP Data types.

Examples

>>> import dpnp as np
>>> a = np.arange(4).reshape((2,2))
>>> a.shape
(2, 2)
>>> [i for i in a]
[0, 1, 2, 3]
>>> np.min(a)
0