1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-10-15 07:20:35 +02:00

don't construct parent(::WreatProductElem) when not necessary

This commit is contained in:
kalmar 2017-07-21 14:30:48 +02:00
parent 7c1a96b64e
commit 68df946c81

View File

@ -122,8 +122,7 @@ doc"""
############################################################################### ###############################################################################
function deepcopy_internal(g::WreathProductElem, dict::ObjectIdDict) function deepcopy_internal(g::WreathProductElem, dict::ObjectIdDict)
G = parent(g) return WreathProductElem(deepcopy(g.n), deepcopy(g.p))
return G(deepcopy(g.n), deepcopy(g.p))
end end
function hash(G::WreathProduct, h::UInt) function hash(G::WreathProduct, h::UInt)