CyRK's cython integrator is setup to only work with complex numbers #12
Labels
enhancement
New feature or request
good first issue
Good for newcomers
performance
Issues related to improving performance
Milestone
As of v0.2.0, CyRK's cython integrator only allows for complex numbers. Non-complex differential equations have to be passed into the integrator by setting all of the imaginary portions to 0. This works fine but roughly doubles the memory usage and computation steps for various parts of the calculation. To improve performance, the integrator should allow for pure floats if complex calculations are not required.
This could either be done by:
y0
and use that type throughout the calculationcyrk_ode
is called. This wrapper (which could be pure python or numba code) would then check the type ofy0
and then pass the arguments the appropriate cyrk_ode.cyrk_ode_complex
andcyrk_ode_float
.The first method would be more ideal as the second would require maintaining two very similar functions. It would also introduce a (small?) overhead in that initial python wrapper function call.
The text was updated successfully, but these errors were encountered: