Skip to content

Commit

Permalink
HACK: Rank method higher than in package
Browse files Browse the repository at this point in the history
The semigroups package has a method for `Matrix` that causes problems.
  • Loading branch information
hulpke committed Feb 25, 2022
1 parent edf9153 commit afa9e4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/matobj.gi
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ InstallMethod( Matrix,

InstallMethod( Matrix,
[ IsSemiring, IsList ],
# rank higher than a method in the semigroups package, which otherwise jumps
# in and causes an error when testing
# line 318 of semigroups-3.4.0/gap/elements/semiringmat.gi
20,
function( R, list )
if Length(list) = 0 then
Error( "list must be not empty" );
Expand Down

0 comments on commit afa9e4f

Please sign in to comment.