We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ebe781 commit cce4350Copy full SHA for cce4350
src/sage/matrix/matrix_gf2e_dense.pyx
@@ -965,7 +965,7 @@ cdef class Matrix_gf2e_dense(matrix_dense.Matrix_dense):
965
966
def is_invertible(self):
967
"""
968
- Return if invertible by checking full rank.
+ Return ``True`` if this matrix is invertible.
969
970
EXAMPLES::
971
@@ -999,9 +999,10 @@ cdef class Matrix_gf2e_dense(matrix_dense.Matrix_dense):
999
if not self.is_invertible():
1000
raise ZeroDivisionError("Matrix does not have full rank.")
1001
1002
- sig_on()
1003
- mzed_invert_newton_john(A._entries, self._entries)
1004
- sig_off()
+ if self._nrows:
+ sig_on()
+ mzed_invert_newton_john(A._entries, self._entries)
1005
+ sig_off()
1006
1007
return A
1008
0 commit comments