Skip to content

Commit ec31f54

Browse files
committed
src/sage/stats/distributions/discrete_gaussian_lattice.py: add long time
There's a loop in one of the examples in this file that samples from a distribution until a condition is met. This already takes a long time on my machine, but in the absence of luck it can take such a long time that it triggers a "slow doctest" warning on the CI. Since the time taken is random, we mark it "# long time" to be safe.
1 parent 82138b8 commit ec31f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/stats/distributions/discrete_gaussian_lattice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def __init__(self, B, sigma=1, c=0, r=None, precision=None, sigma_basis=False):
504504
....: add_samples(1000)
505505
sage: sum(counter.values()) # random
506506
3000
507-
sage: while abs(m*f(v)*1.0/nf/counter[v] - 1.0) >= 0.1: # needs sage.symbolic
507+
sage: while abs(m*f(v)*1.0/nf/counter[v] - 1.0) >= 0.1: # long time, needs sage.symbolic
508508
....: add_samples(1000)
509509
510510
If the covariance provided is not positive definite, an error is thrown::

0 commit comments

Comments
 (0)