Skip to content

Commit 1250a61

Browse files
committed
Add hash(::EllCrvIso)
1 parent f6cf0f2 commit 1250a61

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/EllCrv/Isomorphisms.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,14 @@ function ==(f::EllCrvIso, g::EllCrvIso)
608608
return f.data == g.data && Ef == Eg && base_field(Ef) == base_field(Eg)
609609
end
610610

611+
function Base.hash(f::EllCrvIso, h::UInt)
612+
Ef = domain(f)
613+
h = hash(f.data, h)
614+
h = hash(Ef, h)
615+
h = hash(base_field(Ef), h)
616+
return h
617+
end
618+
611619

612620
################################################################################
613621
#

0 commit comments

Comments
 (0)