dpnp.std

dpnp.std(x1, axis=None, dtype=None, out=None, ddof=0, keepdims=False)[source]

Compute the standard deviation along the specified axis.

For full documentation refer to numpy.std.

Limitations

Input array is supported as dpnp.ndarray. Size of input array is limited by a.size > 0. Prameters axis is supported only with default value None. Prameters dtype is supported only with default value None. Prameters out is supported only with default value None. Prameters keepdims is supported only with default value numpy._NoValue. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.

See also

dpnp.var

Compute the variance along the specified axis.

dpnp.mean

Compute the arithmetic mean 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.std(a)
1.118033988749895