diff --git a/lib/matobj2.gd b/lib/matobj2.gd index e04cec3814..eda51cc872 100644 --- a/lib/matobj2.gd +++ b/lib/matobj2.gd @@ -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]);