mutate array in-place to divide by a scalar value