Skip to content

Commit f2a5bf1

Browse files
committed
comments for mandarins
1 parent 35fd302 commit f2a5bf1

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
@@ -439,6 +439,12 @@ InstallGlobalFunction( RecogniseGeneric,
439439

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

@@ -531,6 +537,7 @@ InstallGlobalFunction( RecogniseGeneric,
531537
Add(factorMandarins, y);
532538
#s := SLPforElement(ri, x);
533539
od;
540+
# sort the factorMandarins and remove duplicates and trivials
534541

535542
# Try to recognise the factor a few times, then give up:
536543
counter := 0;
@@ -625,6 +632,7 @@ InstallGlobalFunction( RecogniseGeneric,
625632
Add( kernelMandarins, x / z );
626633
fi;
627634
od;
635+
# sort the kernelMandarins and remove duplicates and trivials
628636
# kernelMandarins := rifac!.kernelMandarins
629637

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

0 commit comments

Comments
 (0)