mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-10-18 08:35:35 +02:00
remove the parent check in setindex!(X::GroupRingElem, v, g)
it should be fine as long as we can coerce g to parent(X).group
This commit is contained in:
parent
9a4038e2da
commit
9f6b7f4236
@ -207,7 +207,7 @@ end
|
||||
|
||||
function setindex!(X::GroupRingElem, value, g::GroupElem)
|
||||
RG = parent(X)
|
||||
typeof(g) == elem_type(RG.group) || throw("$g is not an element of $(RG.group)")
|
||||
# typeof(g) == elem_type(RG.group) || throw("$g is not an element of $(RG.group): $(typeof(g)) != $(elem_type(RG.group))")
|
||||
if !(g in keys(RG.basis_dict))
|
||||
g = (RG.group)(g)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user