Accumulate the elements of vector X into an array F using the index
list I, and return F:
F[I[k]] += X[k] for every kF starts all-zero, sized to cover the largest index in IInput
X = [1, 2, 3, 4, 5, 6]
I = [1, 3, 9, 3, 4, 1]
Output
[0. 7. 0. 6. 5. 0. 0. 0. 0. 3.]