Ticket #3966: ode-cython.patch
| File ode-cython.patch, 1.1 kB (added by jason, 4 months ago) |
|---|
-
a/sage/gsl/ode.pyx
old new 257 257 It is possible to pass a compiled function by deriving from the class ode_sysem and overloading c_f and c_j with C functions that 258 258 specify the system. The following will work in notebook 259 259 260 % pyrex260 %cython 261 261 cimport sage.gsl.ode 262 262 import sage.gsl.ode 263 263 include 'gsl.pxi' … … 393 393 T= gsl_odeiv_step_rk4imp 394 394 elif self.algorithm == "bsimp": 395 395 T = gsl_odeiv_step_bsimp 396 if self.jacobian==None:396 if not type and self.jacobian==None: 397 397 raise TypeError,"The jacobian must be provided for the implicit Burlisch-Stoer method" 398 398 elif self.algorithm == "gear1": 399 399 T = gsl_odeiv_step_gear1