Skip to content

Commit

Permalink
comments for mandarins
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiccha committed Oct 28, 2020
1 parent 1c0ffe7 commit 1c1be29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gap/base/recognition.gi
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,12 @@ InstallGlobalFunction( RecogniseGeneric,

if mandarins = fail then
Assert(0, depth = 0);
# Use SetPseudoRandomStamp or RandomElm
# FIXME: double-check whether mandarins are not reused. Since
# PseudoRandom may use RandomElm as the pseudorandomfunc it could
# happen that the mandarins are reused.
# I think we have to undo the hack to PseudoRandom or, even worse,
# remove the mandarins from ri!.randr manually
mandarins := List([1..NUM_MANDARINS], i -> PseudoRandom(H));
fi;

Expand Down Expand Up @@ -502,6 +508,7 @@ InstallGlobalFunction( RecogniseGeneric,
Add(factorMandarins, y);
#s := SLPforElement(ri, x);
od;
# sort the factorMandarins and remove duplicates and trivials

# Try to recognise the factor a few times, then give up:
counter := 0;
Expand Down Expand Up @@ -596,6 +603,7 @@ InstallGlobalFunction( RecogniseGeneric,
Add( kernelMandarins, x / z );
fi;
od;
# sort the kernelMandarins and remove duplicates and trivials
# kernelMandarins := rifac!.kernelMandarins

if Length(gensN(ri)) = 0 then
Expand Down

0 comments on commit 1c1be29

Please sign in to comment.