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:
kalmarek 2018-07-30 19:23:49 +02:00
parent 9a4038e2da
commit 9f6b7f4236
1 changed files with 1 additions and 1 deletions

View File

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