1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-09-13 08:25:39 +02: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
elem_type(::AutGroup) = AutGroupElem
parent_type(::AutGroupElem) = AutGroup
function ϱ(i,j, pow=1)
@ -140,6 +142,7 @@ function change_pow(s::AutSymbol, n::Int)
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