Skip to content

sumxmy

Sum of element-wise differences: sum(A - B).

c = sumxmy(A, B)

Returns sum(A - B) computed in one pass.

sumxmy([10 20 30], [1 2 3]) % 54
  • sumxpy — Sum of element-wise sums: sum(A + B).
  • sumxmy2 — Sum of squared differences between paired arrays.
  • sum — Sum elements of an array.