-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use more sympy features to optimise/improve generated code #191
Comments
As many know we've also had issues with sympy simplifying The thing with the codegen stuff is that it's too late (you apply it to an already simplified equation), so not that much different to our current printing. we could add an option for the transpiler to just spit out functions named math. etc. |
Is Anyway, I can see benefits to using our 'own' functions for these by default in the CellML parsing stage, with a method on The reason for linking the question to this issue in my mind was that the optimisations above for cases like Maybe computing analytic Jacobians etc would come either between stages 1 & 2 (most likely), or between 2 & 3? Using |
it's entirely possible that log could cause issues, just not with the numbers our test models happen to be using. |
So I've just mad a codegen PR improving speed of generating the model In terms of timing generating normal Shannon2004 on cardiac.nottingham now talkes 8.5s for one of the biggest model, about half of which is load time (cellmlmanip.load_model). |
Picking up from the discussion in #190. Look into things like:
expm1
The text was updated successfully, but these errors were encountered: