From ad97e1fab70f27f331af6f0b87ad7b8fce452ead Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 16 May 2017 18:35:37 +0200 Subject: [PATCH] deepcopy & hash --- src/GroupAlgebras.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/GroupAlgebras.jl b/src/GroupAlgebras.jl index bf63c47..41e7fda 100644 --- a/src/GroupAlgebras.jl +++ b/src/GroupAlgebras.jl @@ -75,6 +75,15 @@ function (A::GroupRing)(x::AbstractVector) return GroupRingElem(x, A) end + +function deepcopy_internal(X::GroupRingElem, dict::ObjectIdDict) + return GroupRingElem(deepcopy(X.coeffs), parent(X)) +end + +function hash(X::GroupRingElem, h::UInt) + return hash(X.coeffs, hash(parent(X), h)) +end + function show(io::IO, A::GroupRing) print(io, "GroupRing of $(A.group)") end