-
Notifications
You must be signed in to change notification settings - Fork 9
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
User exposing init and step for customization. #466
User exposing init and step for customization. #466
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful, I love it!
Could you write a test (which we can later reuse as a tutorial :) ) which compares jx.integrate()
to a minimal version of iteratively calling step()
?
Alright, I added an API equivalence test of integrate vs. manual for-loop. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing, thanks!
* Working init and step * Refactored integrate * Adding API equivalence test * Fixing delta_t in APU test
User exposing init and step
Currently, the only user API to solve a cell ODE is
jx.integrate
. For various applications, it is useful to have access to aninit
function, which initializes the state, and astep
function, which executes a single ode step. Some examples are:Also see #350 .
Proposal