Skip to content

Commit ff5f554

Browse files
committed
really use lazy ring
1 parent c4158cc commit ff5f554

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

lmfdb/siegel_modular_forms/siegel_core.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Author: Nils Skoruppa <nils.skoruppa@gmail.com>
66

7-
from sage.all import (QQ, ZZ, PowerSeriesRing, is_even, is_prime,
7+
from sage.all import (QQ, ZZ, is_even, is_prime,
88
LazyPowerSeriesRing)
99
from lmfdb.utils import integer_divisors
1010

@@ -19,7 +19,7 @@ def _dimension_Sp4Z(wt):
1919
OUTPUT
2020
("Total", "Eisenstein", "Klingen", "Maass", "Interesting")
2121
"""
22-
x = PowerSeriesRing(ZZ, 'x').gen()
22+
x = LazyPowerSeriesRing(ZZ, 'x').gen()
2323
H_all = 1 / (1 - x ** 4) / (1 - x ** 6) / (1 - x ** 10) / (1 - x ** 12)
2424
H_Kl = x ** 12 / (1 - x ** 4) / (1 - x ** 6)
2525
H_MS = (x ** 10 + x ** 12) / (1 - x ** 4) / (1 - x ** 6)
@@ -44,7 +44,7 @@ def _dimension_Sp4Z_2(wt):
4444
"""
4545
if not is_even(wt):
4646
return (uk, uk, uk)
47-
x = PowerSeriesRing(ZZ, 'x').gen()
47+
x = LazyPowerSeriesRing(ZZ, 'x').gen()
4848
H = 1 / (1 - x ** 4) / (1 - x ** 6) / (1 - x ** 10) / (1 - x ** 12)
4949
V = 1 / (1 - x ** 6) / (1 - x ** 10) / (1 - x ** 12)
5050
# W = 1 / (1 - x ** 10) / (1 - x ** 12)
@@ -62,8 +62,8 @@ def _dimension_Sp6Z(wt):
6262
"""
6363
if not is_even(wt):
6464
return (0, 0, 0, 0)
65-
x = PowerSeriesRing(ZZ, 'x').gen()
66-
y = PowerSeriesRing(ZZ, 'y').gen()
65+
x = LazyPowerSeriesRing(ZZ, 'x').gen()
66+
y = LazyPowerSeriesRing(ZZ, 'y').gen()
6767
H_all = 1 / ((1 - x ** 4) * (1 - x ** 12) ** 2 * (1 - x ** 14) * (1 - x ** 18) *
6868
(1 - x ** 20) * (1 - x ** 30)) * (
6969
1 + x ** 6 + x ** 10 + x ** 12 + 3 * x ** 16 + 2 * x ** 18 + 2 * x ** 20
@@ -176,7 +176,7 @@ def _dimension_Gamma0_2(wt):
176176
REMARK
177177
Only total dimension implemented.
178178
"""
179-
x = PowerSeriesRing(ZZ, 'x').gen()
179+
x = LazyPowerSeriesRing(ZZ, 'x').gen()
180180
H_all = 1 / (1 - x ** 2) / (1 - x ** 4) / (1 - x ** 4) / (1 - x ** 6)
181181
# H_cusp = ??
182182
# H_Kl = ??
@@ -199,7 +199,7 @@ def _dimension_Gamma0_3(wt):
199199
REMARK
200200
Only total dimension implemented.
201201
"""
202-
x = PowerSeriesRing(ZZ, 'x').gen()
202+
x = LazyPowerSeriesRing(ZZ, 'x').gen()
203203
H_all = (1 + 2 * x ** 4 + x ** 6 + x ** 15 * (1 + 2 * x ** 2 + x ** 6)) / (1 - x ** 2) / (1
204204
- x ** 4) / (1 - x ** 6) ** 2
205205
# H_cusp = ??
@@ -224,7 +224,7 @@ def _dimension_Gamma0_3_psi_3(wt):
224224
REMARK
225225
Not completely implemented
226226
"""
227-
x = PowerSeriesRing(ZZ, 'x').gen()
227+
x = LazyPowerSeriesRing(ZZ, 'x').gen()
228228
B = 1 / (1 - x ** 1) / (1 - x ** 3) / (1 - x ** 4) / (1 - x ** 3)
229229
H_all_odd = B
230230
H_all_even = B * x ** 14
@@ -249,7 +249,7 @@ def _dimension_Gamma0_4(wt):
249249
REMARK
250250
Not completely implemented
251251
"""
252-
x = PowerSeriesRing(ZZ, 'x').gen()
252+
x = LazyPowerSeriesRing(ZZ, 'x').gen()
253253
H_all = (1 + x ** 4)(1 + x ** 11) / (1 - x ** 2) ** 3 / (1 - x ** 6)
254254
# H_cusp = ??
255255
# H_Kl = ??
@@ -273,7 +273,7 @@ def _dimension_Gamma0_4_psi_4(wt):
273273
REMARK
274274
The formula for odd weights is unknown or not obvious from the paper.
275275
"""
276-
x = PowerSeriesRing(ZZ, 'x').gen()
276+
x = LazyPowerSeriesRing(ZZ, 'x').gen()
277277
H_all_even = (x ** 12 + x ** 14) / (1 - x ** 2) ** 3 / (1 - x ** 6)
278278
# H_cusp = ??
279279
# H_Kl = ??
@@ -300,7 +300,7 @@ def _dimension_Gamma0_4_half(k):
300300
Note that formula from Hayashida's and Ibukiyama's paper has formula
301301
that coefficient of x^w is for weight (w+1/2). So here w=k-1.
302302
"""
303-
x = PowerSeriesRing(ZZ, 'x').gen()
303+
x = LazyPowerSeriesRing(ZZ, 'x').gen()
304304
H_all = 1 / (1 - x) / (1 - x ** 2) ** 2 / (1 - x ** 3)
305305
H_cusp = (2 * x ** 5 + x ** 7 + x ** 9 - 2 * x ** 11 + 4 * x ** 6 - x ** 8 + x ** 10 - 3
306306
* x ** 12 + x ** 14) / (1 - x ** 2) ** 2 / (1 - x ** 6)

0 commit comments

Comments
 (0)