-
-
Notifications
You must be signed in to change notification settings - Fork 560
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
Fix usage of symbolic comparison in several places #24992
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
comment:5
I get a 10-15% decrease of CPU time with this branch when doing It's not finished, there are more instances in Sage where the changes can be applied. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Ralf Stephan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symbolic comparison is wrongly used in several places throughout Sage (overview https://trac.sagemath.org/wiki/symbolics/nonzero). The ticket replaces code involuntarily calling
__nonzero__
with a call of theis_zero
oris_equal
member functions to clarify if simplification is needed or not. The code positions calling__nonzero__
were obtained by raising an exception in__nonzero__
and analyzing the resulting doctest fails. Of course not every simplification is unwanted so every case must be considered and tested.CC: @cheuberg @dkrenn
Component: performance
Author: Ralf Stephan
Branch/Commit: u/rws/fix_usage_of_symbolic_comparison_in_several_places @
d08957e
Issue created by migration from https://trac.sagemath.org/ticket/24992
The text was updated successfully, but these errors were encountered: