dpnp.max

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

Return the maximum of an array or maximum along an 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.max(a)
3