Commit 8e36b8c9 authored by David Ham's avatar David Ham
Browse files

fix recursive calls

parent 9307d170
......@@ -89,11 +89,12 @@ def HRevolve_aux(l, K, cmem, cvect, wvect, rvect, hoptp=None, hopt=None, **param
jmin = argmin(list_mem)
sequence.insert(Operation("Forwards", [0, jmin - 1]))
sequence.insert_sequence(
hrevolve_recurse(l - jmin, 0, cmem - 1, cvect, wvect, rvect, hoptp=hoptp, hopt=hopt).shift(jmin)
hrevolve_recurse(l - jmin, 0, cmem - 1, cvect, wvect, rvect,
hoptp=hoptp, hopt=hopt, **params).shift(jmin)
)
sequence.insert(Operation("Read", [0, 0]))
sequence.insert_sequence(
HRevolve_aux(jmin - 1, 0, cmem, cvect, wvect, rvect, uf,
HRevolve_aux(jmin - 1, 0, cmem, cvect, wvect, rvect,
hoptp=hoptp, hopt=hopt, **params)
)
return sequence
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment