mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-11-19 06:30:29 +01:00
remove fishy part in normalform! that was never hit
This commit is contained in:
parent
39f4ef4b5f
commit
7d5c7ac623
@ -42,8 +42,5 @@ Defaults to the rewriting in the free group.
|
||||
"""
|
||||
@inline function normalform!(res::AbstractWord, g::FPGroupElement)
|
||||
isone(res) && isnormalform(g) && return append!(res, word(g))
|
||||
if isnormalform(g) && inv(alphabet(g), last(out)) != first(word(g))
|
||||
return append!(res, word(g))
|
||||
end
|
||||
return KnuthBendix.rewrite_from_left!(res, word(g), rewriting(parent(g)))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user