-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix major logical error in CSE printing
- use-counting was not applied recursively to the arguments of special functions; instead, the cpp_cse implementation simply fell back to printing these functions using GiNaC’s own C++ output formatting - this means that any temporary CSE variables appearing in the argument of a special function might not be correctly use-counted, and therefore might not be output to the temporary pool. (This first showed up in Yvette’s model, which has a cosh with a fairly large argument for which CSE is nontrivial). - now fixed by recursively applying use-counting, and also mapping GiNaC function names to their correct C++ versions. We also check for special functions that have not yet been implemented.
- Loading branch information
Showing
4 changed files
with
122 additions
and
71 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