1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-07-12 01:35:30 +02:00

add length(::AutSymbol)

This commit is contained in:
kalmar 2017-05-15 09:54:08 +02:00
parent c925181116
commit bdca979fda

View File

@ -187,6 +187,8 @@ function change_pow(s::AutSymbol, n::Int)
end end
end end
length(s::AutSymbol) = abs(s.pow)
generators(G::AutGroup) = [G(AutGroupElem(elt)) for elt in G.gens] generators(G::AutGroup) = [G(AutGroupElem(elt)) for elt in G.gens]
############################################################################### ###############################################################################