mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-26 02:20:30 +01:00
AutWord -> AutGroupElem
This commit is contained in:
parent
7528ab631e
commit
26eb8b35cb
@ -147,7 +147,7 @@ function (F::AutGroupElem)(v)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function simplify_perms!(W::AutWord)
|
function simplify_perms!(W::AutGroupElem)
|
||||||
reduced = true
|
reduced = true
|
||||||
for i in 1:length(W.symbols) - 1
|
for i in 1:length(W.symbols) - 1
|
||||||
current = W.symbols[i]
|
current = W.symbols[i]
|
||||||
@ -172,7 +172,7 @@ function simplify_perms!(W::AutWord)
|
|||||||
return reduced
|
return reduced
|
||||||
end
|
end
|
||||||
|
|
||||||
function reduce!(W::AutWord)
|
function reduce!(W::AutGroupElem)
|
||||||
if length(W) < 2
|
if length(W) < 2
|
||||||
deleteat!(W.symbols, find(x -> x.pow == 0, W.symbols))
|
deleteat!(W.symbols, find(x -> x.pow == 0, W.symbols))
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user