dpnp.mean
- dpnp.mean(x1, axis=None, **kwargs)[source]
Compute the arithmetic mean along the specified axis.
For full documentation refer to
numpy.mean
.Limitations
Input array is supported as
dpnp.ndarray
. Prametersaxis
is supported only with default valueNone
. Keyword argumentskwargs
are currently unsupported. Size of input array is limited byx1.size > 0
. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.See also
dpnp.average
Weighted average.
dpnp.std
Compute the standard deviation along the specified axis.
dpnp.var
Compute the variance along the specified axis.
dpnp.nanmean
Compute the arithmetic mean along the specified axis, ignoring NaNs.
dpnp.nanstd
Compute the standard deviation along the specified axis, while ignoring NaNs.
dpnp.nanvar
Compute the variance along the specified axis, while ignoring NaNs.
Examples
>>> import dpnp as np >>> a = np.array([[1, 2], [3, 4]]) >>> np.mean(a) 2.5