mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2025-01-01 03:40:29 +01:00
deepcopy & hash
This commit is contained in:
parent
eecba6c5d8
commit
ad97e1fab7
@ -75,6 +75,15 @@ function (A::GroupRing)(x::AbstractVector)
|
|||||||
return GroupRingElem(x, A)
|
return GroupRingElem(x, A)
|
||||||
end
|
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)
|
function show(io::IO, A::GroupRing)
|
||||||
print(io, "GroupRing of $(A.group)")
|
print(io, "GroupRing of $(A.group)")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user