This loop should've been removed, since the new values are being put into `partials` via the swap. However, using @jfager's technique of updating `partials` in place (by using indexing rather than iterators) is better since it is faster.