Consider replacing FG_div by QuoInt

Issue #1 resolved
Max Horn created an issue

In lib/enumerators.gi this function is defined:

InstallGlobalFunction( FG_div,
    function(a, b)
        return (a - (a mod b)) / b;
    end );

For positive inputs, this is equivalent to the GAP kernel function QuoInt, so you may want to use that instead, as it's faster. In fact, perhaps change code like this:

     i := FG_div(a, y);    
     j := a mod y;

to something like this:

     i := QuoInt(a, y);    
     j := RemInt(a, y);

Comments (1)

  1. Log in to comment