Skip to Content

sum_op

View the code on GitHub

Structs

Functions

sum

sum(arg0: Array) -> Array
Computes the sum of the input array along all axes.
Args
  • arg0: Array The input array.
Returns
  • Array - An array containing the sum of the input array along all axes.

Examples:

a = Array([[1, 2], [3, 4]]) result = sum(a) print(result)

Note: This function supports:

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