I did not see that you are mostly working with slices of arrays in this function. Cythonizing them makes no sense then.