Skip to content

Commit a98c32d

Browse files
committed
test RuntimeError no invertible matrix
1 parent bb0efc5 commit a98c32d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/sage/combinat/k_regular_sequence.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,14 @@ def guess(self, f, n_verify=100, max_exponent=10, sequence=None):
12391239
2-regular sequence 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ...
12401240
sage: S2
12411241
2-regular sequence 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ...
1242+
1243+
::
1244+
1245+
sage: A = Seq2((Matrix([[1, 1], [1, 1]]), Matrix([[1, 1], [1, 1]])), left=(1, 1), right=(1, 1))
1246+
sage: Seq2.guess(lambda n: n, sequence=A, n_verify=5)
1247+
Traceback (most recent call last):
1248+
...
1249+
RuntimeError: no invertible submatrix found
12421250
"""
12431251
import logging
12441252
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)