Skip to content

Commit 9bd54b3

Browse files
committed
lint: Fix relint imports
1 parent cd03d32 commit 9bd54b3

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/sage/stats/distributions/discrete_gaussian_lattice.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
EXAMPLES::
2020
21-
sage: from sage.stats.all import DGL
21+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
2222
sage: D = DGL(ZZ^10, 3.0)
2323
sage: D(), D(), D() # random
2424
((3, 0, -5, 0, -1, -3, 3, 3, -7, 2), (4, 0, 1, -2, -4, -4, 4, 0, 1, -4), (-3, 0, 4, 5, 0, 1, 3, 2, 0, -1))
@@ -120,7 +120,7 @@ class DiscreteGaussianDistributionLatticeSampler(SageObject):
120120
121121
EXAMPLES::
122122
123-
sage: from sage.stats.all import DGL
123+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
124124
sage: D = DGL(ZZ^10, 3.0); D
125125
Discrete Gaussian sampler with Gaussian parameter σ = 3.00000000000000, c=(0, 0, 0, 0, 0, 0, 0, 0, 0, 0) over lattice with basis
126126
<BLANKLINE>
@@ -138,7 +138,7 @@ class DiscreteGaussianDistributionLatticeSampler(SageObject):
138138
139139
We plot a histogram::
140140
141-
sage: from sage.stats.all import DGL
141+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
142142
sage: import warnings
143143
sage: warnings.simplefilter('ignore', UserWarning)
144144
sage: D = DGL(identity_matrix(2), 3.0)
@@ -167,7 +167,7 @@ def compute_precision(precision, sigma):
167167
168168
EXAMPLES::
169169
170-
sage: from sage.stats.all import DGL
170+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
171171
sage: DGL.compute_precision(100, RR(3))
172172
100
173173
sage: DGL.compute_precision(100, RealField(200)(3))
@@ -208,7 +208,7 @@ def _normalisation_factor_zz(self, tau=None, prec=None):
208208
209209
EXAMPLES::
210210
211-
sage: from sage.stats.all import DGL
211+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
212212
sage: n = 3; sigma = 1.0
213213
sage: D = DGL(ZZ^n, sigma)
214214
sage: f = D.f
@@ -349,7 +349,7 @@ def _maximal_r(self):
349349
350350
EXAMPLES::
351351
352-
sage: from sage.stats.all import DGL
352+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
353353
sage: n = 3
354354
sage: Sigma = Matrix(ZZ, [[5, -2, 4], [-2, 10, -5], [4, -5, 5]])
355355
sage: c = vector(ZZ, [7, 2, 5])
@@ -420,7 +420,7 @@ def __init__(self, B, sigma=1, c=0, r=None, precision=None, sigma_basis=False):
420420
421421
EXAMPLES::
422422
423-
sage: from sage.stats.all import DGL
423+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
424424
sage: n = 2; sigma = 3.0
425425
sage: D = DGL(ZZ^n, sigma)
426426
sage: f = D.f
@@ -485,7 +485,7 @@ def __init__(self, B, sigma=1, c=0, r=None, precision=None, sigma_basis=False):
485485
486486
We can also initialise with matrix-like objects:
487487
488-
sage: from sage.stats.all import DGL
488+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
489489
sage: qf = QuadraticForm(matrix(3, [2, 1, 1, 1, 2, 1, 1, 1, 2]))
490490
sage: D = DGL(qf, 3.0); D # needs sage.symbolic
491491
Discrete Gaussian sampler with Gaussian parameter σ = 3.00000000000000, c=(0, 0, 0) over lattice with basis
@@ -597,7 +597,7 @@ def __call__(self):
597597
598598
EXAMPLES::
599599
600-
sage: from sage.stats.all import DGL
600+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
601601
sage: D = DGL(ZZ^3, 3.0, c=(1,0,0))
602602
sage: L = [D() for _ in range(2^12)]
603603
sage: mean_L = sum(L) / len(L)
@@ -649,7 +649,7 @@ def sigma(self):
649649
650650
EXAMPLES::
651651
652-
sage: from sage.stats.all import DGL
652+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
653653
sage: D = DGL(ZZ^3, 3.0, c=(1,0,0))
654654
sage: D.sigma
655655
3.00000000000000
@@ -663,7 +663,7 @@ def sigma(self, sigma):
663663
664664
EXAMPLES::
665665
666-
sage: from sage.stats.all import DGL
666+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
667667
sage: D = DGL(ZZ^3, 3.0, c=(1,0,0))
668668
sage: D.c = (2, 0, 0)
669669
sage: D
@@ -684,7 +684,7 @@ def c(self):
684684
685685
EXAMPLES::
686686
687-
sage: from sage.stats.all import DGL
687+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
688688
sage: D = DGL(ZZ^3, 3.0, c=(1,0,0)); D
689689
Discrete Gaussian sampler with Gaussian parameter σ = 3.00000000000000, c=(1, 0, 0) over lattice with basis
690690
<BLANKLINE>
@@ -704,7 +704,7 @@ def c(self, c):
704704
705705
EXAMPLES::
706706
707-
sage: from sage.stats.all import DGL
707+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
708708
sage: D = DGL(ZZ^3, 3.0, c=(1,0,0))
709709
sage: D.c = (2, 0, 0)
710710
sage: D
@@ -739,7 +739,7 @@ def __repr__(self):
739739
r"""
740740
EXAMPLES::
741741
742-
sage: from sage.stats.all import DGL
742+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
743743
sage: D = DGL(ZZ^3, 3.0, c=(1,0,0)); D
744744
Discrete Gaussian sampler with Gaussian parameter σ = 3.00000000000000, c=(1, 0, 0) over lattice with basis
745745
<BLANKLINE>
@@ -770,7 +770,7 @@ def _call_in_lattice(self):
770770
771771
EXAMPLES::
772772
773-
sage: from sage.stats.all import DGL
773+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
774774
sage: D = DGL(ZZ^3, 3.0, c=(1,0,0))
775775
sage: L = [D._call_in_lattice() for _ in range(2^12)]
776776
sage: mean_L = sum(L) / len(L)
@@ -790,7 +790,7 @@ def _call(self):
790790
791791
EXAMPLES::
792792
793-
sage: from sage.stats.all import DGL
793+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
794794
sage: D = DGL(ZZ^3, 3.0, c=(1/2,0,0))
795795
sage: L = [D._call() for _ in range(2^12)]
796796
sage: mean_L = sum(L) / len(L)
@@ -822,7 +822,7 @@ def add_offline_samples(self, cnt=1):
822822
823823
EXAMPLES::
824824
825-
sage: from sage.stats.all import DGL
825+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
826826
sage: Sigma = Matrix([[5, -2, 4], [-2, 10, -5], [4, -5, 5]])
827827
sage: D = DGL(ZZ^3, Sigma)
828828
sage: assert not D.is_spherical
@@ -843,7 +843,7 @@ def _call_non_spherical(self):
843843
844844
EXAMPLES::
845845
846-
sage: from sage.stats.all import DGL
846+
sage: from sage.stats.distributions.discrete_gaussian_lattice import DGL
847847
sage: Sigma = Matrix([[5, -2, 4], [-2, 10, -5], [4, -5, 5]])
848848
sage: D = DGL(ZZ^3, Sigma, c=(1/2,0,0))
849849
sage: L = [D._call_non_spherical() for _ in range(2^12)]

0 commit comments

Comments
 (0)