mlx_rs::ops

Function std

Source
pub fn std<'a>(
    a: impl AsRef<Array>,
    axes: impl IntoOption<&'a [i32]>,
    keep_dims: impl Into<Option<bool>>,
    ddof: impl Into<Option<i32>>,
) -> Result<Array>
Expand description

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

ยงParams

  • a: Input array
  • axes: Optional axis or axes to reduce over. If unspecified this defaults to reducing over the entire array.
  • keep_dims: Keep reduced axes as singleton dimensions, defaults to False.
  • ddof: The divisor to compute the variance is N - ddof, defaults to 0.