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):
116116 return True
117117 if self ._conversion is not None :
118118 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):
120120 return False
121121 y = tup[0 ]
122122 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):
51405140 fac = o1.factor()
51415141 S = sum ((pi - 1 ) * pi** (ei - 1 ) for pi, ei in fac)
51425142 if fac[0 ] == (2 , 1 ):
5143- impossible_order = not (S <= n + 1 )
5143+ impossible_order = S > n + 1
51445144 else :
5145- impossible_order = not (S <= n)
5145+ impossible_order = S > n
51465146 if impossible_order:
51475147 return Infinity
51485148
You can’t perform that action at this time.
0 commit comments