File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ class IncreasingChains(RecursivelyEnumeratedSet_forest):
116
116
return True
117
117
if self ._conversion is not None :
118
118
tup = [self ._from_poset[elt] for elt in tup]
119
- if any ( not (0 <= i < self ._n) for i in tup):
119
+ if not all (0 <= i < self ._n for i in tup):
120
120
return False
121
121
y = tup[0 ]
122
122
for k in range (1 , len (tup)):
Original file line number Diff line number Diff line change @@ -5140,9 +5140,9 @@ cdef class Matrix(sage.structure.element.Matrix):
5140
5140
fac = o1.factor()
5141
5141
S = sum ((pi - 1 ) * pi** (ei - 1 ) for pi, ei in fac)
5142
5142
if fac[0 ] == (2 , 1 ):
5143
- impossible_order = not (S <= n + 1 )
5143
+ impossible_order = S > n + 1
5144
5144
else :
5145
- impossible_order = not (S <= n)
5145
+ impossible_order = S > n
5146
5146
if impossible_order:
5147
5147
return Infinity
5148
5148
You can’t perform that action at this time.
0 commit comments