Skip to Content

std_op

View the code on GitHub

Structs

Functions

std

std(arg0: Array, axes: List[Int] = List(0), unbiased: Bool = True, keepdims: Bool = False) -> Array
Computes the standard deviation of the input array along the specified axes.
Args
  • arg0: Array The input array.

  • axes: List[Int] (default: List(0)) The axes along which to compute the standard deviation.

  • unbiased: Bool (default: True) If True, the standard deviation is computed using the unbiased estimator.

  • keepdims: Bool (default: False) If True, the reduced axes are kept in the result.

Returns
  • Array - An array containing the standard deviation of the input array along the specified axes.

Examples:

a = Array([[1, 2], [3, 4]]) result = std(a, List(0)) print(result)

Note: This function supports:

  • Automatic differentiation (forward and reverse modes).
  • Complex valued arguments.
Last updated on