Skip to content

Commit 872c058

Browse files
committed
default behaviour of min
1 parent e776011 commit 872c058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/matrix/matrix_polynomial_dense.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4757,7 +4757,7 @@ cdef class Matrix_polynomial_dense(Matrix_generic_dense):
47574757
# must have maximum entry at most min(shifts)
47584758
# [see Lemma 4.2, Neiger-Vu, Computing Canonical Bases of Modules of
47594759
# Univariate Relations, Proc. ISSAC 2017]
4760-
min_shift = 0 if len(shifts) == 0 else min(shifts)
4760+
min_shift = min(shifts, default=0)
47614761
if row_wise:
47624762
extended_shifts = [s - min_shift for s in shifts] + [0]*n
47634763
else:

0 commit comments

Comments
 (0)