Skip to content

Commit

Permalink
suggested doctest added
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Nov 3, 2023
1 parent edb121f commit 15dd435
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sage/matrix/matrix2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8542,15 +8542,18 @@ cdef class Matrix(Matrix1):

TESTS::

sage: # needs sage.graphs
sage: M = matrix(ZZ, [[3, 4, 5], [3, 4, 5], [3, 5, 4], [2, 0,1]])
sage: M.permutation_normal_form() # needs sage.graphs
sage: M.permutation_normal_form()
[5 4 3]
[5 4 3]
[4 5 3]
[1 0 2]
sage: M = matrix(ZZ, 0, 0, [])
sage: M.permutation_normal_form() # needs sage.graphs
sage: M.permutation_normal_form()
[]
sage: M.permutation_normal_form(check=True)
([], ((), ()))
"""
nrows = self.nrows()
ncols = self.ncols()
Expand Down

0 comments on commit 15dd435

Please sign in to comment.