Theano implementation of explicit fourth-order Runge-Kutta method