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
andx2
are supported as eitherdpnp.ndarray
or scalar. Parametersdtype
,out
andwhere
are supported with their default values. Keyword argumentskwargs
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
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]