Skip to content

Commit

Permalink
FiniteComplementIdealExtension to accept 0
Browse files Browse the repository at this point in the history
  • Loading branch information
pedritomelenas committed Nov 2, 2023
1 parent a9ca43b commit ef24c27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gap/affine-def.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,9 @@ InstallGlobalFunction(FiniteComplementIdealExtension, function(arg)

h:=Filtered(gens, g->Filtered(gens, gg->ForAll(g-gg,x->x>=0))=[g]);
d:=Length(h[1]);
if h=[ListWithIdenticalEntries(d,0)] then
return AffineSemigroup(IdentityMat(d));
fi;
if not(ForAll([1..d], i->ForAny(h, g->support(g)=[i]))) then
Error("These elements do not generate a zero dimensional ideal");
fi;
Expand Down

0 comments on commit ef24c27

Please sign in to comment.