Sum of squares of elements along dimension dim.
If dim is omitted, it defaults to the first non-singleton dimension.
This function is conceptually equivalent to computing
sum (x .* conj (x), dim)
but it uses less memory and avoids calling conj
if x is real.
See also: sum, prod.
Package: communications