I have an array x=np.ones(1000)
and would like to perform operations
on this based on recurrence formulae:
x[i]= f(x[i-1], x[i-2])
What is the fastest way to do it in a vectorize way ?
I know that xx= ne.evaluate(xx1*xx2)
can only manage already filled array.