sum over element wise ()^2 of "in"
[sim, out] = ld_vector_sqsum(sim, events, in, vecsize)
in *+(vecsize)
out *