-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cse treatment in lambdify with Derivatives
Before, when there were Derivatives in expr ans args given to lambdify with cse enabled, there was an error because the cse treatment changed the arguments of the Derivative object. With this implementation, the expression is pre-treated by a function to mask the instances of Derivative objects, then the cse process is applied and finally we do a post-treatment to put back the Derivative expressions in expr.
- Loading branch information
mleila1312
committed
Apr 10, 2024
1 parent
e89ee93
commit 5e97b9d
Showing
3 changed files
with
236 additions
and
5 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