-
Notifications
You must be signed in to change notification settings - Fork 67
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: add missing hash methods #1719
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OrdLocElem
from the list in oscar-system/Oscar.jl#2222 is still missing
Thanks. Should all be addressed now. |
@@ -276,6 +276,10 @@ function ==(A::GenOrdFracIdl, B::GenOrdFracIdl) | |||
return isone(denominator(C, copy = false)) && isone(norm(C)) | |||
end | |||
|
|||
function Base.hash(A::GenOrdFracIdl, h::UInt) | |||
return hash(order(A), hash(basis_matrix(A), h)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the matrix guaranteed to be in HNF? With a unque HNF?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already use it for hashing of GenOrdIdl
so I had hoped that it is fine.
Co-authored-by: Lars Göttgens <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1719 +/- ##
===========================================
+ Coverage 6.49% 76.00% +69.51%
===========================================
Files 361 361
Lines 114238 114387 +149
===========================================
+ Hits 7419 86941 +79522
+ Misses 106819 27446 -79373
|
No description provided.