From e33800cfa16a01c3adbdfcf29c0ca799463da767 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Wed, 15 Aug 2018 19:19:49 +0200 Subject: [PATCH] use the simple string constructor for perm --- src/Projections.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Projections.jl b/src/Projections.jl index c3dfb9e..0617283 100644 --- a/src/Projections.jl +++ b/src/Projections.jl @@ -92,7 +92,7 @@ function idempotents(RG::GroupRing{Generic.PermGroup{S}}, T::Type=Rational{Int}) return GroupRingElem{T}[one(RG,T)] elseif RG.group.n == 2 Id = one(RG,T) - transp = convert(T, RG(RG.group([2,1]))) + transp = RG(perm"(1,2)", T) return GroupRingElem{T}[1//2*(Id + transp), 1//2*(Id - transp)] end