Skip to content

Commit 4d2c72c

Browse files
committed
Fix doctest
Why are there so many bugs :/
1 parent 2000fc8 commit 4d2c72c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sage/stats/distributions/discrete_gaussian_lattice.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def _normalisation_factor_zz(self, tau=None, prec=None):
237237
sage: while v not in counter:
238238
....: add_samples(1000)
239239
240-
sage: while abs(m*f(v)*1.0/nf/counter[v] - 1.0) >= 0.2: # long time, needs sage.symbolic
240+
sage: while abs(m*f(v)*1.0/nf/counter[v] - 1.0) >= 0.2: # long time, needs sage.symbolic
241241
....: add_samples(1000)
242242
243243
sage: D = DGL(ZZ^8, 0.5)
@@ -486,6 +486,7 @@ def __init__(self, B, sigma=1, c=0, r=None, precision=None, sigma_basis=False):
486486
487487
sage: Sigma = Matrix(ZZ, [[0, 1], [1, 0]])
488488
sage: DGL(ZZ^2, Sigma)
489+
Traceback (most recent call last):
489490
...
490491
RuntimeError: Sigma(=[0.000000000000000 1.00000000000000]
491492
[ 1.00000000000000 0.000000000000000]) is not positive definite

0 commit comments

Comments
 (0)