sumxpy2
Sum of squared element-wise sums: sum((A + B).^2).
Syntax
Section titled “Syntax”c = sumxpy2(A, B)Description
Section titled “Description”Returns sum((A + B).^2) computed in one pass — useful for vector-norm computations and squared-quantity accumulations.
Example
Section titled “Example”sumxpy2([1 2], [3 4]) % 52 (= 16 + 36)