Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
New method _test_ncols_nonnegative
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Apr 13, 2016
1 parent 48b9fe5 commit 5394729
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sage/numerical/backends/generic_backend.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,11 @@ cdef class GenericBackend:

raise NotImplementedError()

def _test_ncols_nonnegative(self, **options):
tester = self._tester(**options)
p = self
tester.assertGreaterEqual(self.ncols(), 0)

cpdef int nrows(self):
"""
Return the number of rows/constraints.
Expand Down

0 comments on commit 5394729

Please sign in to comment.