#15915: add discrete Gaussian samplers to Sage
-------------------------------------------------+-------------------------
Reporter: malb | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.3
Component: statistics | Resolution:
Keywords: sd59 | Merged in:
Authors: Martin Albrecht | Reviewers: Julian
Report Upstream: N/A | Rueth
Branch: | Work issues:
025ac61297d755d7a0fa3d3d8085e21d2f07dd1a | Commit:
Dependencies: | Stopgaps:
-------------------------------------------------+-------------------------
Comment (by malb):
Replying to [comment:44 vbraun]:
> Various builbots report:
> {{{
> sage -t --long
src/sage/stats/distributions/discrete_gaussian_integer.pyx
> **********************************************************************
> File "src/sage/stats/distributions/discrete_gaussian_integer.pyx", line
263, in
sage.stats.distributions.discrete_gaussian_integer.DiscreteGaussianIntegerSampler.__init__
> Failed example:
> min(l), max(l), abs(mean(l)-2.5) < 0.01
> Expected:
> (-2, 7, True)
> Got:
> (-3, 7, True)
> }}}
On what kind of machine is this on? I cannot reproduce it on either 64 or
32 bit Linux.
> Also, on 32-bit linux:
I can reproduce those and am currenly testing a fix (some default value
was machine dependent).
> Also some crypto stuff failed, though I don't know if it is related
> {{{
> 4 items had failures:
> 4 of 15 in sage.crypto.lwe
> 1 of 7 in sage.crypto.lwe.RingLWE.__call__
> 2 of 7 in sage.crypto.lwe.balance_sample
> 3 of 7 in sage.crypto.lwe.samples
> [100 tests, 10 failures, 0.60 s]
> }}}
These are related, thanks.
--
Ticket URL: <http://trac.sagemath.org/ticket/15915#comment:45>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.