How do I vectorize the following calculation if a and b are appropriately sized numpy arrays?
total = a[0]
for ix in range(1, len(a)):
total = total*b[ix-1] + a[ix]
How do I vectorize the following calculation if a and b are appropriately sized numpy arrays?
total = a[0]
for ix in range(1, len(a)):
total = total*b[ix-1] + a[ix]