mlx.core.std

目录

mlx.core.std#

std(a: array, /, axis: None | int | Sequence[int] = None, keepdims: bool = False, ddof: int = 0, *, stream: None | Stream | Device = None) array#

Compute the standard deviation(s) over the given axes.

参数:
  • a (array) -- Input array.

  • axis (int or list(int), optional) -- Optional axis or axes to reduce over. If unspecified this defaults to reducing over the entire array.

  • keepdims (bool, optional) -- Keep reduced axes as singleton dimensions, defaults to False.

  • ddof (int, optional) -- The divisor to compute the variance is N - ddof, defaults to 0.

返回:

The output array of standard deviations.

返回类型:

array