Open malb opened 10 years ago
Last 10 new commits:
9ea5bc4 | documentation clean up |
f15c339 | Merge branch 'develop' of trac.sagemath.org:sage into discrete_gaussian |
fba8f61 | Merge branch 'develop' of trac.sagemath.org:sage into discrete_gaussian |
6dcd131 | include stats dir |
bf03fd7 | fixed doctest failures |
8711050 | moved & renamed discrete gaussian samplers |
7926fae | added Gaussian samplers for polynomials and lattices |
6ace4d7 | pass polynomial ring explicitly to distributions over polynomial rings |
a910589 | addressed comments at https://github.com/sagemath/sage/pull/18 |
9efaa2f | AbsoluteOrder.random_element(distribution='gaussian') |
Branch: u/malb/trac_16556
Changed dependencies from 15915 to #15915
Branch pushed to git repo; I updated commit sha1. New commits:
042530d | added doctest for plotting histograms |
18279ac | faster discrete gaussians over lattices if lattice is trivial |
4681abe | cherry picked doctest fix from u/saraedum/ticket/15915 |
c0dbee5 | Merge branch 'u/malb/15915_discrete_gaussians' into random_element |
Changed branch from u/malb/trac_16556 to u/malb/t16556_absolute_order_random_element
Branch pushed to git repo; I updated commit sha1. New commits:
8fde676 | PolynomialQuotient_integer.random_element(distribution='gaussian' |
Description changed:
---
+++
@@ -1 +1,21 @@
This ticket implements sampling from absolute orders of number fields using a discrete Gaussian distribution.
+
+```
+sage: from sage.stats.distributions.discrete_gaussian_lattice import DiscreteGaussianLatticeSampler
+sage: K = CyclotomicField(16)
+sage: R = K.ring_of_integers()
+sage: D = DiscreteGaussianLatticeSampler(R.basis_matrix(), 8)
+sage: R.random_element()
+-zeta16^7 - 2*zeta16^5 - zeta16^2 - zeta16 - 1
+```
+
+and from `ZZ[x]/<f>`:
+
+```
+sage: from sage.stats.distributions.discrete_gaussian_lattice import DiscreteGaussianLatticeSampler
+sage: P.<x> = ZZ[]
+sage: Q.<x> = P.quotient(x^8 + 1)
+sage: D = DiscreteGaussianLatticeSampler(Q.basis_matrix(), 8)
+sage: Q.random_element(D)
+x^7 - 3*x^5 + 9*x^4 + 2*x^3 + 2*x^2 - 5*x - 3
+```
Branch pushed to git repo; I updated commit sha1. New commits:
98eaabf | be more permissing in parameter handling but throw error if can't candle |
New commits:
98eaabf | be more permissing in parameter handling but throw error if can't candle |
needs rebase, does not apply
This ticket implements sampling from absolute orders of number fields using a discrete Gaussian distribution.
and from
ZZ[x]/<f>
:Depends on #15915
Component: number fields
Keywords: sd59
Author: Martin Albrecht
Branch/Commit: u/malb/t16556_absolute_order_random_element @
98eaabf
Issue created by migration from https://trac.sagemath.org/ticket/16556