1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-08-08 07:53:53 +02:00

add setindex!(::DirectProductGroupElem)

This commit is contained in:
kalmarek 2018-07-30 14:54:54 +02:00
parent 5ac1ea7ba8
commit 8a40d76143

View File

@ -126,6 +126,11 @@ function Base.setindex!(g::DirectProductGroupElem{T}, v::T, i::Int) where {T}
return g
end
function Base.setindex!(g::DirectProductGroupElem{T}, v::S, i::Int) where {T, S}
g.elts[i] = parent(g.elts[i])(v)
return g
end
###############################################################################
#
# DirectProductGroup / DirectProductGroupElem constructors