cosmetic (better message in throws)

This commit is contained in:
kalmar 2017-06-07 19:30:40 +02:00
parent 49c9151a83
commit c38dcb02ed
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ function elements(F::Nemo.FqNmodFiniteField)
end
function AutFG_emb(A::AutGroup, g::WreathProductElem)
isa(A.objectGroup, FreeGroup) || throw("Not an Aut(FN)")
parent(g).P.n == length(A.objectGroup.gens) || throw("No natural action of $(parent(g)) on $A")
isa(A.objectGroup, FreeGroup) || throw("Not an Aut(F)")
parent(g).P.n == length(A.objectGroup.gens) || throw("No natural embedding of $(parent(g)) into $A")
powers = [(elt == parent(elt)() ? 0: 1) for elt in g.n.elts]
elt = reduce(*, [A(Groups.flip_autsymbol(i))^pow for (i,pow) in enumerate(powers)])
Groups.r_multiply!(elt, [Groups.perm_autsymbol(g.p)])