-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor ScipyOdeSimulator code generation (#531)
This moves all codegen out of the simulator class. A new abstract class RhsBuilder is introduced to manage codegen, and Python and Cython concrete implementations are provided. The codegen itself is now performed using sympy expression manipulation and sympy's own codegen rather than hand-rolled string manipulations and Cython.inline. Performance is improved since Cython.inline's overhead on long code strings was really hurting us.
- Loading branch information
Showing
7 changed files
with
544 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.