mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-11-19 06:30:29 +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