From 6e9cc8e0f68400969ac61188c7513ea9ee04def0 Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Tue, 8 Nov 2022 09:59:07 +0100 Subject: [PATCH] action on FPGroupElement via action on the underlying word --- src/actions/alphabet_permutation.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/actions/alphabet_permutation.jl b/src/actions/alphabet_permutation.jl index a3e15e0..8dfe89d 100644 --- a/src/actions/alphabet_permutation.jl +++ b/src/actions/alphabet_permutation.jl @@ -28,17 +28,17 @@ end function SymbolicWedderburn.action( act::AlphabetPermutation, γ::Groups.GroupElement, - w::Groups.AbstractWord, + g::Groups.AbstractFPGroupElement, ) - return w^(act.perms[γ]) + G = parent(g) + w = SymbolicWedderburn.action(act, γ, word(g)) + return G(w) end function SymbolicWedderburn.action( act::AlphabetPermutation, γ::Groups.GroupElement, - g::Groups.AbstractFPGroupElement, + w::Groups.AbstractWord, ) - G = parent(g) - w = word(g)^(act.perms[γ]) - return G(w) + return w^(act.perms[γ]) end