vectorized summing moments