sumxpy
Sum of element-wise sums: sum(A + B).
Syntax
Section titled “Syntax”c = sumxpy(A, B)Description
Section titled “Description”Returns sum(A + B) computed in one pass (skipping the intermediate elementwise array). Useful for performance-critical inner loops.
Example
Section titled “Example”sumxpy([1 2 3], [4 5 6]) % 21 (= sum of [5 7 9])