mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-26 18:30:29 +01:00
add elem_type, parent_type, generators
This commit is contained in:
parent
39d64b7e69
commit
53bc7fe05c
@ -18,7 +18,9 @@ type AutGroup <: Group
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
elem_type(::AutGroup) = AutGroupElem
|
||||||
|
|
||||||
|
parent_type(::AutGroupElem) = AutGroup
|
||||||
|
|
||||||
|
|
||||||
function ϱ(i,j, pow=1)
|
function ϱ(i,j, pow=1)
|
||||||
@ -140,6 +142,7 @@ function change_pow(s::AutSymbol, n::Int)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
generators(G::AutGroup) = [G(AutGroupElem(elt)) for elt in G.generators]
|
||||||
|
|
||||||
(==)(s::AutSymbol, t::AutSymbol) = s.gen == t.gen && s.pow == t.pow
|
(==)(s::AutSymbol, t::AutSymbol) = s.gen == t.gen && s.pow == t.pow
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user