Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CyRK's CySolver does not allow for complex-valued dependent variables. #30

Open
jrenaud90 opened this issue Jul 28, 2023 · 0 comments
Open
Labels
CySolver Issues related to the CySolver class cython Issue related to cython-based code enhancement New feature or request help wanted Extra attention is needed

Comments

@jrenaud90
Copy link
Owner

jrenaud90 commented Jul 28, 2023

CyRK's CySolver only allows np.float64 y0 and dydt. This is due to limitations between fused types (used in cyrk_ode) and cython cdef classes.

A workaround is to convert your N-dimensional complex system of ODEs into a 2N-dimensional floating point system of ODEs. Pass this onto CySolver, and then convert the output back into complex values.

@jrenaud90 jrenaud90 changed the title CyRK' CyRK's CySolver does not allow for complex-valued dependent variables. Jul 28, 2023
@jrenaud90 jrenaud90 added enhancement New feature or request help wanted Extra attention is needed cython Issue related to cython-based code labels Jul 28, 2023
@jrenaud90 jrenaud90 added the CySolver Issues related to the CySolver class label Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CySolver Issues related to the CySolver class cython Issue related to cython-based code enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant