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. Prametersaxisis supported only with default valueNone. Keyword argumentskwargsare 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.averageWeighted average.
dpnp.stdCompute the standard deviation along the specified axis.
dpnp.varCompute the variance along the specified axis.
dpnp.nanmeanCompute the arithmetic mean along the specified axis, ignoring NaNs.
dpnp.nanstdCompute the standard deviation along the specified axis, while ignoring NaNs.
dpnp.nanvarCompute 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