mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-24 18:05:27 +01:00
construct parent object on the fly
This commit is contained in:
parent
8631e5d16b
commit
78eded0124
@ -32,7 +32,7 @@ elem_type(G::DirectProductGroup) = DirectProductGroupElem
|
||||
|
||||
parent_type(::Type{DirectProductGroupElem}) = DirectProductGroup
|
||||
|
||||
parent(g::DirectProductGroupElem) = g.parent
|
||||
parent(g::DirectProductGroupElem) = DirectProductGroup([parent(h) for h in g.elts])
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user