cosmetic (better message in throws)
This commit is contained in:
parent
49c9151a83
commit
c38dcb02ed
@ -57,8 +57,8 @@ function elements(F::Nemo.FqNmodFiniteField)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function AutFG_emb(A::AutGroup, g::WreathProductElem)
|
function AutFG_emb(A::AutGroup, g::WreathProductElem)
|
||||||
isa(A.objectGroup, FreeGroup) || throw("Not an Aut(FN)")
|
isa(A.objectGroup, FreeGroup) || throw("Not an Aut(Fₙ)")
|
||||||
parent(g).P.n == length(A.objectGroup.gens) || throw("No natural action of $(parent(g)) on $A")
|
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]
|
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)])
|
elt = reduce(*, [A(Groups.flip_autsymbol(i))^pow for (i,pow) in enumerate(powers)])
|
||||||
Groups.r_multiply!(elt, [Groups.perm_autsymbol(g.p)])
|
Groups.r_multiply!(elt, [Groups.perm_autsymbol(g.p)])
|
||||||
|
Loading…
Reference in New Issue
Block a user