use the simple string constructor for perm

This commit is contained in:
kalmarek 2018-08-15 19:19:49 +02:00
parent 6047d496d5
commit e33800cfa1
1 changed files with 1 additions and 1 deletions

View File

@ -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