From afa9e4f2cf62bd36f2eebdfd827a3b7375eec158 Mon Sep 17 00:00:00 2001 From: Alexander Hulpke Date: Wed, 16 Feb 2022 19:07:59 -0700 Subject: [PATCH] HACK: Rank method higher than in package The semigroups package has a method for `Matrix` that causes problems. --- lib/matobj.gi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/matobj.gi b/lib/matobj.gi index 3dd194e6eb..2bc5fd5987 100644 --- a/lib/matobj.gi +++ b/lib/matobj.gi @@ -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" );