add unified gens(G::FPGroup) function

This commit is contained in:
kalmar 2017-07-05 16:26:14 +02:00
parent 08ebec118f
commit 5d51855d17
3 changed files with 3 additions and 6 deletions

View File

@ -211,8 +211,6 @@ end
length(s::AutSymbol) = abs(s.pow)
generators(G::AutGroup) = [G(AutGroupElem(elt)) for elt in G.gens]
###############################################################################
#
# String I/O

View File

@ -85,8 +85,6 @@ change_pow(s::FreeSymbol, n::Int) = FreeSymbol(s.str, n)
length(s::FreeSymbol) = abs(s.pow)
generators(G::FreeGroup) = [G(FreeGroupElem(g)) for g in G.gens]
###############################################################################
#
# String I/O

View File

@ -3,7 +3,7 @@ module Groups
using Nemo
import Nemo: Group, GroupElem, Ring
import Nemo: parent, parent_type, elem_type
import Nemo: elements, order
import Nemo: elements, order, gens
import Base: length, ==, hash, show, convert
import Base: inv, reduce, *, ^
@ -135,6 +135,8 @@ doc"""
"""
reduce(W::GWord) = reduce!(deepcopy(W))
gens(G::FPGroup) = [G(g) for g in G.gens]
###############################################################################
#
# String I/O
@ -390,7 +392,6 @@ function generate_balls{T<:GroupElem}(S::Vector{T}, Id::T; radius=2)
return B, sizes
end
###############################################################################
#
# Includes