1
0
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:
kalmar 2017-05-17 12:49:45 +02:00
parent 3176172f23
commit 05b7274ee7

View File

@ -135,15 +135,15 @@ function getindex(X::GroupRingElem, g::GroupElem)
return X.coeffs[parent(X).basis_dict[g]] return X.coeffs[parent(X).basis_dict[g]]
end end
function setindex!(X::GroupRingElem, k, n::Int) function setindex!(X::GroupRingElem, value, n::Int)
X.coeffs[n] = k X.coeffs[n] = value
end end
function setindex!(X::GroupRingElem, k, g::GroupElem) function setindex!(X::GroupRingElem, value, g::GroupElem)
RG = parent(X) 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)")
g = (RG.group)(g) g = (RG.group)(g)
X.coeffs[RG.basis_dict[g]] = k X.coeffs[RG.basis_dict[g]] = value
end end
############################################################################### ###############################################################################