-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add dummy hash for AbsIdealSheaf
#4366
Conversation
Co-authored-by: Matthias Zach <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4366 +/- ##
==========================================
- Coverage 84.34% 84.34% -0.01%
==========================================
Files 651 651
Lines 86744 86749 +5
==========================================
+ Hits 73163 73167 +4
- Misses 13581 13582 +1
|
@@ -587,6 +587,11 @@ function ==(I::AbsIdealSheaf, J::AbsIdealSheaf) | |||
return true | |||
end | |||
|
|||
function Base.hash(I::AbsIdealSheaf, h::UInt) | |||
h = hash(scheme(I), 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.
Just to be sure: You deliberately choose the hash-value of the scheme on which I is defined?
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.
This was the suggestion of @HechtiDerLachs. I assumed that this is some property that all ==
AbsIdealSheaves have in common
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.
Indeed, if you were looking precisely for something that ==
AbsIdealSheaves have in common (and usually many more..), this is certainly the case. So the choice makes sense.
Some progress towards #2222.