Skip to content

Commit

Permalink
Fix a slow doctest in matrix_integer_dense_hnf.py
Browse files Browse the repository at this point in the history
The hnf for integer dense matrices is quite slow, reported in #35161.
While that issue is resolved, it doesn't make sense to keep this very
slow test, so tune it down to an acceptable time.
  • Loading branch information
tornaria committed Feb 19, 2023
1 parent 05329f6 commit f9a0d54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/matrix/matrix_integer_dense_hnf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,9 +1189,9 @@ def benchmark_hnf(nrange, bits=4):
EXAMPLES::
sage: import sage.matrix.matrix_integer_dense_hnf as hnf
sage: hnf.benchmark_hnf([50,100],32)
('sage', 50, 32, ...),
('sage', 100, 32, ...),
sage: hnf.benchmark_hnf([10,25],32)
('sage', 10, 32, ...),
('sage', 25, 32, ...),
"""
b = 2**bits
for n in nrange:
Expand Down

0 comments on commit f9a0d54

Please sign in to comment.