cupy.std#

cupy.std(a, axis=None, dtype=None, out=None, ddof=0, keepdims=False)[source]#

Returns the standard deviation along an axis.

Parameters:
  • a (cupy.ndarray) – Array to compute standard deviation.

  • axis (int) – Along which axis to compute standard deviation. The flattened array is used by default.

  • dtype – Data type specifier.

  • out (cupy.ndarray) – Output array.

  • keepdims (bool) – If True, the axis is remained as an axis of size one.

Returns:

The standard deviation of the input array along the axis.

Return type:

cupy.ndarray

See also

numpy.std()