-
Notifications
You must be signed in to change notification settings - Fork 71
Make equality of factorizations give error (instead of false) #2188
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
base: master
Are you sure you want to change the base?
Make equality of factorizations give error (instead of false) #2188
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2188 +/- ##
=======================================
Coverage 87.95% 87.95%
=======================================
Files 127 127
Lines 31791 31793 +2
=======================================
+ Hits 27961 27963 +2
Misses 3830 3830 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Thanks a lot. Looks good to me. Can we merge? |
Quick question: the proposed implementation always gives an error except if a factorization is tested for equality against itself (in which case it returns |
I would just make it error in all cases with the same error message. |
It is certainly an improvement over the existing state of things. |
I hope to push some tests very soon.... |
This is probably simplest until we find a better idea inspired by a genuine use-case. It does still "feel strange" that comparing a factorization with itself triggers an error (rather than returning I suppose I had better just delete the more involved code I first pushed -- extra complexity for no purpose? |
The problem with just testing
Yes, maybe best to just delete it. |
Response to issue https://github.com/oscar-system/Oscar.jl/issues/5319#issuecomment-3405528665