1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 18:15:29 +01:00

fix: don't shadow gens function

This commit is contained in:
kalmar 2017-07-06 09:04:48 +02:00
parent acbaa148bf
commit 392214b697

View File

@ -182,8 +182,8 @@ end
hash(s::AutSymbol, h::UInt) = hash(s.str, hash(s.pow, hash(:AutSymbol, h))) hash(s::AutSymbol, h::UInt) = hash(s.str, hash(s.pow, hash(:AutSymbol, h)))
function hash(g::AutGroupElem, h::UInt) function hash(g::AutGroupElem, h::UInt)
gens = generators(parent(g).objectGroup) gs = gens(parent(g).objectGroup)
return hash(g(gens), hash(typeof(g), hash(parent(g), h))) return hash(g(gs), hash(typeof(g), hash(parent(g), h)))
end end
function change_pow(s::AutSymbol, n::Int) function change_pow(s::AutSymbol, n::Int)
@ -233,8 +233,8 @@ end
function (==)(g::AutGroupElem, h::AutGroupElem) function (==)(g::AutGroupElem, h::AutGroupElem)
parent(g) == parent(h) || return false parent(g) == parent(h) || return false
G = parent(g).objectGroup G = parent(g).objectGroup
gens = generators(G) gs = gens(G)
return g(gens) == h(gens) return g(gs) == h(gs)
end end
############################################################################### ###############################################################################