mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-12-29 11:00:28 +01:00
critical fix: if g was not in basis setindex! failed silently
This commit is contained in:
parent
9f6287382d
commit
8a3a4c70d6
@ -180,9 +180,8 @@ function setindex!(X::GroupRingElem, value, g::GroupElem)
|
||||
typeof(g) == elem_type(RG.group) || throw("$g is not an element of $(RG.group)")
|
||||
if !(g in keys(RG.basis_dict))
|
||||
g = (RG.group)(g)
|
||||
else
|
||||
X.coeffs[RG.basis_dict[g]] = value
|
||||
end
|
||||
X.coeffs[RG.basis_dict[g]] = value
|
||||
end
|
||||
|
||||
eltype(X::GroupRingElem) = eltype(X.coeffs)
|
||||
|
Loading…
Reference in New Issue
Block a user