Re: [sage-devel] Weird issue with matrix mutability

2013-01-10 Thread Johannes
hey list, If you look at the code, there is a function called _new_c() which is used in the multiplication algorithm. In there, the following line is called: x = Matrix_integer_2x2.__new__(Matrix_integer_2x2, self._parent, None, False, False) this returns a Matrix_integer_2x2, but is different

[sage-devel] Weird issue with matrix mutability

2013-01-10 Thread David Loeffler
The following curious bug came up during work on ticket #12233. For some reason, if one creates a 2x2 integer matrix directly using the constructor then it is possible to tell it to be immutable; but if one creates one via arithmetic operations then calling "set_immutable" on it fails. Here's an ex