Skip to content

Commit 8cf252e

Browse files
committed
fix a doctest in is_totally_unimodular()
1 parent 563380c commit 8cf252e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/sage/matrix/matrix_cmr_sparse.pyx

+6-2
Original file line numberDiff line numberDiff line change
@@ -1627,17 +1627,21 @@ cdef class Matrix_cmr_chr_sparse(Matrix_cmr_sparse):
16271627
sage: from sage.matrix.matrix_cmr_sparse import Matrix_cmr_chr_sparse
16281628
sage: MFR2cmr = Matrix_cmr_chr_sparse(MS2, MFR2)
16291629
sage: MFR2cmr.is_totally_unimodular(certificate=True)
1630-
(False, (None, ((0, 1, 2), (3, 4, 5))))
1630+
(False, (OneSumNode (6×14) with 2 children, ((2, 1, 0), (5, 4, 3))))
16311631
sage: result, certificate = MFR2cmr.is_totally_unimodular(certificate=True,
16321632
....: complete_tree=True)
16331633
sage: result, certificate
1634-
(False, (None, ((0, 1, 2), (3, 4, 5))))
1634+
(False, (OneSumNode (6×14) with 2 children, ((2, 1, 0), (5, 4, 3))))
16351635
sage: submatrix = MFR2.matrix_from_rows_and_columns(*certificate[1]); submatrix
16361636
[0 1 1]
16371637
[1 0 1]
16381638
[1 1 0]
16391639
sage: submatrix.determinant()
16401640
2
1641+
sage: submatrix = MFR2cmr.matrix_from_rows_and_columns(*certificate[1]); submatrix
1642+
[0 1 1]
1643+
[1 0 1]
1644+
[1 1 0]
16411645
"""
16421646
cdef bool result
16431647
cdef CMR_TU_PARAMS params

0 commit comments

Comments
 (0)