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

Commit

Permalink
Matrix._echelonize_ring: Break infinite self-delegation recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Oct 5, 2021
1 parent 4f65c85 commit a657670
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sage/matrix/matrix2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -7273,7 +7273,10 @@ cdef class Matrix(Matrix1):
cdef Matrix d, a
cdef Py_ssize_t r, c
cdef bint transformation = 'transformation' in kwds and kwds['transformation']
if self._base_ring == ZZ:

if self._base_ring == ZZ and self.dense_matrix() is not self:
# delegate to the specialized echelon form
# implemented in matrix_integer_dense
if 'include_zero_rows' in kwds and not kwds['include_zero_rows']:
raise ValueError("cannot echelonize in place and delete zero rows")
if transformation:
Expand Down

0 comments on commit a657670

Please sign in to comment.