Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/sage/matrix/matrix_cmr_sparse.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,25 @@ cdef class Matrix_cmr_chr_sparse(Matrix_cmr_sparse):
return result

def is_strongly_unimodular(self):
r"""
Not checked

EXAMPLES::

sage: from sage.matrix.matrix_cmr_sparse import Matrix_cmr_chr_sparse
sage: M = Matrix_cmr_chr_sparse(MatrixSpace(ZZ, 2, 3, sparse=True),
....: [[1, 0, 0], [0, 1, 0]]); M
[1 0 0]
[0 1 0]
sage: M.is_strongly_unimodular()
True
sage: M = Matrix_cmr_chr_sparse(MatrixSpace(ZZ, 2, 3, sparse=True),
....: [[1, 1, 0], [-1, 1, 1]]); M
[ 1 1 0]
[-1 1 1]
sage: M.is_strongly_unimodular()
False
"""
cdef bint result

sig_on()
Expand Down