mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-09-05 14:46:44 +02:00
critical fix: if g was not in basis setindex! failed silently
This commit is contained in:
parent
eba594b7a4
commit
ffee54616a
@ -189,9 +189,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
|
||||||
|
|
||||||
Base.size(X::GroupRingElem) = size(X.coeffs)
|
Base.size(X::GroupRingElem) = size(X.coeffs)
|
||||||
|
Loading…
Reference in New Issue
Block a user