The gradient calculation is slightly incorrect and I'm afraid I don't have time to fix it right now. I'll fix it in the other Cython package. ... .