-
Notifications
You must be signed in to change notification settings - Fork 31
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
Split expressions into static and dynamic #1269
Comments
Also, some expressions only need to be evaluated at measurement timepoints. Could also treat them separately, or just flatten everything in |
If we split the expressions as suggested, how would we handle them in ReturnData? Combine static+dynamic expressions a stick to the current |
How to implement? A: vs B: add: vs C: as B but with additional split of I think I'd go for A as this minimizes the required code changes. |
Yeah A sounds pretty straightforward. Would go for a single flag though as I don't think we ever want to evaluate static only. |
Not sure if the initial issue was about |
initial issue was only about |
Depending on the model, there are quite some time-independent entries for the various derivatives. But not sure whether the benefit outweighs the additional complexity. |
ah, well , haven't looked at the PR yet, but it would be great to do the same for dwdw, dwdx and dwdp. |
Right, but potentially also beyond |
I'll look into that separately, after review/merge of #2303. |
Split expressions in `w` into dynamic (explicitly or implicitly time-dependent) and static ones. Evaluate static ones only when needed, i.e. after (re)initializing x_rdata or parameters. See AMICI-dev#1269
Split expressions in `w` into dynamic (explicitly or implicitly time-dependent) and static ones. Evaluate static ones only when needed, i.e. after (re)initializing x_rdata or parameters. See AMICI-dev#1269
Split expressions in `w` into dynamic (explicitly or implicitly time-dependent) and static ones. Evaluate static ones only when needed, i.e. after (re)initializing x_rdata or parameters. See AMICI-dev#1269
Split expressions in `w` and its derivatives into dynamic (explicitly or implicitly time-dependent) and static ones. Evaluate static ones only when needed, i.e. after (re)initializing x_rdata or parameters. See #1269
static expressions don't depend on time/states and only need to be evaluated after reinitialization, not at every timepoint.
The text was updated successfully, but these errors were encountered: