deepcopy & hash

This commit is contained in:
kalmar 2017-05-16 18:35:37 +02:00
parent eecba6c5d8
commit ad97e1fab7
1 changed files with 9 additions and 0 deletions

View File

@ -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