dpnp.maximum

dpnp.maximum(x1, x2, dtype=None, out=None, where=True, **kwargs)[source]

Element-wise maximum of array elements.

For full documentation refer to numpy.maximum.

Limitations

Parameters x1 and x2 are supported as either dpnp.ndarray or scalar. Parameters dtype, out and where are supported with their default values. Keyword arguments kwargs are currently unsupported. Otherwise the functions will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.

See also

dpnp.fmax

Element-wise maximum of array elements.

dpnp.fmin

Element-wise minimum of array elements.

dpnp.fmod

Calculate the element-wise remainder of division.

Example

>>> import dpnp as np
>>> result = np.fmax(np.array([-2, 3, 4]), np.array([1, 5, 2]))
>>> [x for x in result]
[1, 5, 4]