mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-10-31 18:00:35 +01:00
add setindex!(::DirectProductGroupElem)
This commit is contained in:
parent
5ac1ea7ba8
commit
8a40d76143
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user