Skip to content

Commit ad72771

Browse files
committed
Merge branch 'k-regular-bounded' of github.com:dkrenn/sage into k-regular-bounded
* 'k-regular-bounded' of github.com:dkrenn/sage: fix early return by mandel/simon-algo Typo TESTS
2 parents e346176 + f387b89 commit ad72771

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sage/combinat/regular_sequence_bounded.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def construct_phi(matrices):
122122
[2 2 2], [1 2 2], [1 2 2], [2 1 2], [0 1 2], [2 0 2], [1 2 2], [0 0 1]
123123
]
124124
125-
Tests::
125+
TESTS::
126126
127127
sage: L = [Matrix([[20, 1, 0], [2, 0, 0], [117, 0, 8]]),
128128
....: Matrix([[0, 2, 1], [1, 0, 0], [1,1,2]]), Matrix([[8, 1, 0],
@@ -541,7 +541,8 @@ def regular_sequence_is_bounded(S):
541541
return False
542542

543543
try:
544-
return is_bounded_via_mandel_simon_algorithm(make_positive(matricesProd))
544+
if not is_bounded_via_mandel_simon_algorithm(make_positive(matricesProd)):
545+
return False
545546
except ValueError:
546547
pass
547548

0 commit comments

Comments
 (0)