1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-27 10:40:29 +01:00

add elem_type, parent_type, generators

This commit is contained in:
kalmar 2017-05-12 20:09:03 +02:00
parent 39d64b7e69
commit 53bc7fe05c

View File

@ -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