@@ -211,7 +211,7 @@ cdef class Heilbronn:
211
211
sig_off()
212
212
213
213
cdef apply_to_polypart(self , fmpz_poly_t* ans, int i, int k):
214
- """
214
+ r """
215
215
INPUT:
216
216
217
217
- ``ans`` - fmpz_poly_t\* ; pre-allocated an
@@ -402,7 +402,11 @@ cdef class HeilbronnCremona(Heilbronn):
402
402
a = - b
403
403
b = c
404
404
x3 = q* x2 - x1
405
- x1 = x2; x2 = x3; y3 = q* y2 - y1; y1 = y2; y2 = y3
405
+ x1 = x2
406
+ x2 = x3
407
+ y3 = q* y2 - y1
408
+ y1 = y2
409
+ y2 = y3
406
410
list_append4(L, x1,x2, y1,y2)
407
411
self .length = L.i/ 4
408
412
sig_off()
@@ -573,9 +577,11 @@ def hecke_images_gamma0_weight2(int u, int v, int N, indices, R):
573
577
574
578
# Allocate memory to hold images of (u,v) under all Heilbronn matrices
575
579
a = < int * > sig_malloc(sizeof(int )* H.length)
576
- if not a: raise MemoryError
580
+ if not a:
581
+ raise MemoryError
577
582
b = < int * > sig_malloc(sizeof(int )* H.length)
578
- if not b: raise MemoryError
583
+ if not b:
584
+ raise MemoryError
579
585
580
586
# Compute images of (u,v) under all Heilbronn matrices
581
587
H.apply_only(u, v, N, a, b)
@@ -708,9 +714,11 @@ def hecke_images_nonquad_character_weight2(int u, int v, int N, indices, chi, R)
708
714
709
715
# Allocate memory to hold images of (u,v) under all Heilbronn matrices
710
716
a = < int * > sig_malloc(sizeof(int )* H.length)
711
- if not a: raise MemoryError
717
+ if not a:
718
+ raise MemoryError
712
719
b = < int * > sig_malloc(sizeof(int )* H.length)
713
- if not b: raise MemoryError
720
+ if not b:
721
+ raise MemoryError
714
722
715
723
# Compute images of (u,v) under all Heilbronn matrices
716
724
H.apply_only(u, v, N, a, b)
@@ -798,16 +806,19 @@ def hecke_images_quad_character_weight2(int u, int v, int N, indices, chi, R):
798
806
# are the values of the character chi.
799
807
_chivals = chi.values()
800
808
cdef int * chi_vals = < int * > sig_malloc(sizeof(int )* len (_chivals))
801
- if not chi_vals: raise MemoryError
809
+ if not chi_vals:
810
+ raise MemoryError
802
811
for i in range (len (_chivals)):
803
812
chi_vals[i] = _chivals[i]
804
813
805
814
for i, n in enumerate (indices):
806
815
H = HeilbronnCremona(n) if is_prime(n) else HeilbronnMerel(n)
807
816
a = < int * > sig_malloc(sizeof(int )* H.length)
808
- if not a: raise MemoryError
817
+ if not a:
818
+ raise MemoryError
809
819
b = < int * > sig_malloc(sizeof(int )* H.length)
810
- if not b: raise MemoryError
820
+ if not b:
821
+ raise MemoryError
811
822
812
823
H.apply_only(u, v, N, a, b)
813
824
for j in range (H.length):
@@ -893,9 +904,11 @@ def hecke_images_gamma0_weight_k(int u, int v, int i, int N, int k, indices, R):
893
904
894
905
# Allocate memory to hold images of (u,v) under all Heilbronn matrices
895
906
a = < int * > sig_malloc(sizeof(int )* H.length)
896
- if not a: raise MemoryError
907
+ if not a:
908
+ raise MemoryError
897
909
b = < int * > sig_malloc(sizeof(int )* H.length)
898
- if not b: raise MemoryError
910
+ if not b:
911
+ raise MemoryError
899
912
900
913
# Compute images of (u,v) under all Heilbronn matrices
901
914
H.apply_only(u, v, N, a, b)
0 commit comments