Skip to content

Commit d09a8b1

Browse files
committed
fix test and styles
1 parent 3b9f87c commit d09a8b1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/sage/matrix/matrix_mod2_dense.pyx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,6 +2190,9 @@ cdef class Matrix_mod2_dense(matrix_dense.Matrix_dense): # dense or sparse
21902190
21912191
TESTS:
21922192
2193+
This algorithm works correctly for the matrix in
2194+
Example 3.7 in [HAM1985]_::
2195+
21932196
sage: A = Matrix(GF(2), [[1, 1, 0, 0, 0, 0, 0],
21942197
....: [1, 1, 0, 0, 0, 0, 0],
21952198
....: [1, 1, 0, 1, 0, 0, 0],
@@ -2210,7 +2213,8 @@ cdef class Matrix_mod2_dense(matrix_dense.Matrix_dense): # dense or sparse
22102213
....: break
22112214
....: if B[k][j] < B[k][i]:
22122215
....: break
2213-
....:
2216+
sage: flag
2217+
True
22142218
sage: for i in range(B.nrows()):
22152219
....: for j in range(i):
22162220
....: for k in reversed(range(B.ncols())):
@@ -2219,7 +2223,6 @@ cdef class Matrix_mod2_dense(matrix_dense.Matrix_dense): # dense or sparse
22192223
....: break
22202224
....: if B[j][k] < B[i][k]:
22212225
....: break
2222-
....:
22232226
sage: flag
22242227
True
22252228
sage: r, c = A.doubly_lexical_ordering(inplace=True)
@@ -2232,8 +2235,8 @@ cdef class Matrix_mod2_dense(matrix_dense.Matrix_dense): # dense or sparse
22322235
sage: r, c = A.doubly_lexical_ordering(inplace=True)
22332236
Traceback (most recent call last):
22342237
...
2235-
TypeError: This matrix is immutable and can thus not be changed. Use inplace=False or create a mutable copy.
2236-
2238+
TypeError: This matrix is immutable and can thus not be changed.
2239+
Use inplace=False or create a mutable copy.
22372240
"""
22382241

22392242
if inplace and self.is_immutable():

0 commit comments

Comments
 (0)