Skip to content

Commit

Permalink
Fix BaseDomain for IsMatrix and IsPlistRep
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed May 3, 2022
1 parent f0886ca commit 448079e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/matrix.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ InstallOtherMethod( ConstructingFilter,
InstallOtherMethod( BaseDomain,
"generic method for a matrix that is a plain list",
[ IsMatrix and IsPlistRep ],
mat -> BaseDomain( mat[1] ) );
mat -> BaseDomain( Concatenation( mat ) ) );

InstallOtherMethod( OneOfBaseDomain,
"generic method for a matrix that is a plain list",
Expand Down
4 changes: 2 additions & 2 deletions tst/testinstall/matrix.tst
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ gap> IsLowerTriangularMat([[1,0],[1,1],[1,1]]);
true

#
gap> m := Z(5)^0 * [[0, 1], [1, 0]];;
gap> m := Z(5)^0 * [[0, 1], [Z(25), 0]];;
gap> m := GeneratorsWithMemory([m])[1];;
gap> BaseDomain(m) = GF(5);
gap> BaseDomain(m) = GF(25);
true
gap> NrRows(m);
2
Expand Down

0 comments on commit 448079e

Please sign in to comment.