Skip to content
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

Merged
merged 1 commit into from
Jan 9, 2025
Merged

fix: add missing hash methods #1719

merged 1 commit into from
Jan 9, 2025

Conversation

thofma
Copy link
Owner

@thofma thofma commented Jan 8, 2025

No description provided.

Copy link
Contributor

@lgoettgens lgoettgens left a 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

src/GrpAb/Map.jl Outdated Show resolved Hide resolved
test/GrpAb/Map.jl Outdated Show resolved Hide resolved
@thofma
Copy link
Owner Author

thofma commented Jan 8, 2025

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))
Copy link
Collaborator

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?

Copy link
Owner Author

@thofma thofma Jan 8, 2025

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]>
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.00%. Comparing base (cc62e1c) to head (b235d78).
Report is 3 commits behind head on master.

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     
Files with missing lines Coverage Δ
src/GenOrd/FractionalIdeal.jl 86.52% <100.00%> (+86.52%) ⬆️
src/GrpAb/Map.jl 81.71% <100.00%> (+81.71%) ⬆️
src/Misc/OrdLocalization.jl 81.86% <100.00%> (+81.86%) ⬆️
src/RCF/class_fields.jl 57.80% <100.00%> (+57.80%) ⬆️

... and 318 files with indirect coverage changes

@thofma thofma merged commit e16ff76 into master Jan 9, 2025
18 checks passed
@thofma thofma deleted the th/hash branch January 9, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants