Skip to content

Commit

Permalink
Refactor Code for AreCommuting
Browse files Browse the repository at this point in the history
Co-authored-by: Sergio Siccha <siccha@mathematik.uni-kl.de>
  • Loading branch information
FriedrichRober and ssiccha committed Mar 31, 2021
1 parent 1f8b324 commit c0bc1c3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions gap/base/recognition.gi
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,8 @@ InstallGlobalFunction( EmptyRecognitionInfoRecord,
fi;
Setarecommuting(ri, function(x,y)
local a,b;
if IsObjWithMemory(x) then
a := StripMemory(x);
else
a := x;
fi;
if IsObjWithMemory(y) then
b := StripMemory(y);
else
b := y;
fi;
a := StripMemory(x);
b := StripMemory(y);
return isequal(ri)(a*b, b*a);
end);
ri!.projective := projective;
Expand Down

0 comments on commit c0bc1c3

Please # to comment.