@@ -55,7 +55,8 @@ def _step_forward(t, x, dx_dt, dt, x_scale): ## internal step co-routine
5555 _x = x * x_scale + dx_dt * dt
5656 return _t , _x
5757
58- @partial (jit , static_argnums = (2 , ))
58+
59+
5960def step_euler (t , x , dfx , dt , params , x_scale = 1. ):
6061 """
6162 Iteratively integrates one step forward via the Euler method, i.e., a
@@ -83,7 +84,7 @@ def step_euler(t, x, dfx, dt, params, x_scale=1.):
8384 _t , _x = _step_forward (t , x , dx_dt , dt , x_scale )
8485 return _t , _x
8586
86- @ partial ( jit , static_argnums = ( 2 , ))
87+
8788def step_heun (t , x , dfx , dt , params , x_scale = 1. ):
8889 """
8990 Iteratively integrates one step forward via Heun's method, i.e., a
@@ -124,7 +125,7 @@ def step_heun(t, x, dfx, dt, params, x_scale=1.):
124125 _ , _x = _step_forward (t , x , summed_dx_dt , dt * 0.5 , x_scale )
125126 return _t , _x
126127
127- @ partial ( jit , static_argnums = ( 2 , ))
128+
128129def step_rk2 (t , x , dfx , dt , params , x_scale = 1. ):
129130 """
130131 Iteratively integrates one step forward via the midpoint method, i.e., a
@@ -165,7 +166,7 @@ def step_rk2(t, x, dfx, dt, params, x_scale=1.):
165166
166167
167168
168- @ partial ( jit , static_argnums = ( 2 , ))
169+
169170def step_rk4 (t , x , dfx , dt , params , x_scale = 1. ):
170171 """
171172 Iteratively integrates one step forward via the midpoint method, i.e., a
@@ -211,7 +212,7 @@ def step_rk4(t, x, dfx, dt, params, x_scale=1.):
211212 _t , _x = _step_forward (t , x , _dx_dt / 6 , dt , x_scale )
212213 return _t , _x
213214
214- @ partial ( jit , static_argnums = ( 2 , ))
215+
215216def step_ralston (t , x , dfx , dt , params , x_scale = 1. ):
216217 """
217218 Iteratively integrates one step forward via Ralston's method, i.e., a
0 commit comments