Skip to content

Commit

Permalink
implement suggestion by Matthias
Browse files Browse the repository at this point in the history
  • Loading branch information
malb committed Jul 26, 2024
1 parent 92b7f14 commit 261730a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/stats/distributions/discrete_gaussian_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def __call__(self):
sage: M = matrix(ZZ, [[1,2],[0,1]])
sage: D = distributions.DiscreteGaussianDistributionLatticeSampler(M, 20.0)
sage: L = [D() for _ in range(2^12)] # long time
sage: div = (numpy.mean([abs(x) for x,y in L])/numpy.mean([abs(y) for x,y, in L])) # long time
sage: div = numpy.mean([abs(x) for x,y in L]) / numpy.mean([abs(y) for x,y, in L]) # long time
sage: 0.9 < div < 1.1 # long time
True
Expand Down

0 comments on commit 261730a

Please sign in to comment.