1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-07-12 01:35:30 +02:00

deepcopy_internal for FreeGroupElems

This commit is contained in:
kalmar 2017-05-15 09:54:28 +02:00
parent bdca979fda
commit 2d3ed657e7

View File

@ -79,6 +79,11 @@ end
# #
############################################################################### ###############################################################################
function deepcopy_internal(g::FreeGroupElem, dict::ObjectIdDict)
G = parent(g)
return G(FreeGroupElem(g.str, g.pow))
end
hash(s::FreeSymbol, h::UInt) = hash(s.str, hash(s.pow, hash(FreeSymbol, h))) hash(s::FreeSymbol, h::UInt) = hash(s.str, hash(s.pow, hash(FreeSymbol, h)))
change_pow(s::FreeSymbol, n::Int) = FreeSymbol(s.str, n) change_pow(s::FreeSymbol, n::Int) = FreeSymbol(s.str, n)