Skip to content

Commit

Permalink
Prepare for compatibility with ELM_MAT / ASS_MAT
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jul 11, 2019
1 parent e0408c3 commit 052bac3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gap/cmat.gi
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,12 @@ InstallMethod( SetMatElm, "for a cmat, two positions, and an ffe",
m!.rows[row+1][col] := el;
end );


# The following two method installations are useful in
# GAP 4.9 and 4.10, but won't be in GAP 4.11, where it
# suffices to install methods for MatElm and SetMatElm.
if not IsBound(ELM_MAT) then

InstallMethod( \[\], "for a cmat and two positions",
[IsCMatRep, IsPosInt, IsPosInt],
function( m, row, col )
Expand All @@ -630,6 +636,8 @@ InstallMethod( \[\]\:\=, "for a cmat, two positions, and an ffe",
m!.rows[row+1][col] := el;
end );

fi;

InstallOtherMethod( \{\}, "for a cmat, and a list",
[IsCMatRep, IsList],
function(m,li)
Expand Down

0 comments on commit 052bac3

Please sign in to comment.