Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrandhorst committed Dec 19, 2023
1 parent 4faf644 commit ba3e3cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/QuadForm/Quad/ZGenus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,10 @@ function Base.:(==)(G1::ZZLocalGenus, G2::ZZLocalGenus)
# This follows p.381 Chapter 15.7 Theorem 10 in Conway Sloane's book
@req prime(G1) == prime(G2) ("Symbols must be over the same prime "
*"to be comparable")
sym1 = filter!(g -> g[2] != 0, symbol(G1))
sym2 = filter!(g -> g[2] != 0, symbol(G2))

# make a copy and enforce sparsity
sym1 = [g for g in symbol(G1) if g[2] != 0]
sym2 = [g for g in symbol(G1) if g[2] != 0]
if length(sym1) == 0 || length(sym2) == 0
return sym1 == sym2
end
Expand Down

0 comments on commit ba3e3cf

Please sign in to comment.