Skip to content

Commit 1c1be29

Browse files
committed
comments for mandarins
1 parent 1c0ffe7 commit 1c1be29

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gap/base/recognition.gi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,12 @@ InstallGlobalFunction( RecogniseGeneric,
410410

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

@@ -502,6 +508,7 @@ InstallGlobalFunction( RecogniseGeneric,
502508
Add(factorMandarins, y);
503509
#s := SLPforElement(ri, x);
504510
od;
511+
# sort the factorMandarins and remove duplicates and trivials
505512

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

601609
if Length(gensN(ri)) = 0 then

0 commit comments

Comments
 (0)