mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2025-01-01 11:45: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)")
|
typeof(g) == elem_type(RG.group) || throw("$g is not an element of $(RG.group)")
|
||||||
if !(g in keys(RG.basis_dict))
|
if !(g in keys(RG.basis_dict))
|
||||||
g = (RG.group)(g)
|
g = (RG.group)(g)
|
||||||
else
|
|
||||||
X.coeffs[RG.basis_dict[g]] = value
|
|
||||||
end
|
end
|
||||||
|
X.coeffs[RG.basis_dict[g]] = value
|
||||||
end
|
end
|
||||||
|
|
||||||
eltype(X::GroupRingElem) = eltype(X.coeffs)
|
eltype(X::GroupRingElem) = eltype(X.coeffs)
|
||||||
|
Loading…
Reference in New Issue
Block a user