Skip to content

Commit

Permalink
Turn mutable attribute Matrix for lists into operation
Browse files Browse the repository at this point in the history
This was only a mutable attribute as a workaround for the existence of a
Matrix attribute for Rees matrix semigroups. Since that one is gone, we can
also replace the workaround.
  • Loading branch information
fingolfin committed Oct 9, 2019
1 parent b9e6c90 commit 2f313c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matobj2.gd
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ DeclareOperation( "Matrix", [IsSemiring, IsMatrixObj]);

# the following two operations use DefaultFieldOfMatrix to "guess" the base domain
DeclareOperation( "Matrix", [IsList, IsInt]);
DeclareAttribute( "Matrix", IsList, "mutable"); # HACK: because there already is an attribute Matrix
DeclareOperation( "Matrix", [IsList]);

# variant with example object at end (input is first)
DeclareOperation( "Matrix", [IsList, IsInt, IsMatrixObj]);
Expand Down

0 comments on commit 2f313c4

Please sign in to comment.