Skip to content

Commit 15dd435

Browse files
committed
suggested doctest added
1 parent edb121f commit 15dd435

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/sage/matrix/matrix2.pyx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8542,15 +8542,18 @@ cdef class Matrix(Matrix1):
85428542

85438543
TESTS::
85448544

8545+
sage: # needs sage.graphs
85458546
sage: M = matrix(ZZ, [[3, 4, 5], [3, 4, 5], [3, 5, 4], [2, 0,1]])
8546-
sage: M.permutation_normal_form() # needs sage.graphs
8547+
sage: M.permutation_normal_form()
85478548
[5 4 3]
85488549
[5 4 3]
85498550
[4 5 3]
85508551
[1 0 2]
85518552
sage: M = matrix(ZZ, 0, 0, [])
8552-
sage: M.permutation_normal_form() # needs sage.graphs
8553+
sage: M.permutation_normal_form()
85538554
[]
8555+
sage: M.permutation_normal_form(check=True)
8556+
([], ((), ()))
85548557
"""
85558558
nrows = self.nrows()
85568559
ncols = self.ncols()

0 commit comments

Comments
 (0)