Design heuristics for writing Python classes that interact with `scipy.integrate.odeint`?
问题 Introduction scipy.integrate.odeint requires as its first argument, a function that computes the derivatives of the variables we want to integrate over (which I'll refer to as d_func , for "derivative function" from now on). d_func has to be written by the user, in Python code. A great way to get a boost of performance using Numba is to @jit the d_func (because d_func is called many times during integration). I have questions about how to write performant code when d_func is complicated