mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-07-30 06:05:31 +02:00
rename k to value
This commit is contained in:
parent
3176172f23
commit
05b7274ee7
@ -135,15 +135,15 @@ function getindex(X::GroupRingElem, g::GroupElem)
|
||||
return X.coeffs[parent(X).basis_dict[g]]
|
||||
end
|
||||
|
||||
function setindex!(X::GroupRingElem, k, n::Int)
|
||||
X.coeffs[n] = k
|
||||
function setindex!(X::GroupRingElem, value, n::Int)
|
||||
X.coeffs[n] = value
|
||||
end
|
||||
|
||||
function setindex!(X::GroupRingElem, k, g::GroupElem)
|
||||
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)")
|
||||
g = (RG.group)(g)
|
||||
X.coeffs[RG.basis_dict[g]] = k
|
||||
X.coeffs[RG.basis_dict[g]] = value
|
||||
end
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user