We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4adc25 commit c9545c8Copy full SHA for c9545c8
src/sage/schemes/elliptic_curves/ell_curve_isogeny.py
@@ -2244,11 +2244,10 @@ def __init_kernel_polynomial_velu(self):
2244
else:
2245
invX = x
2246
2247
- psi = poly_ring.one()
2248
- for xQ in self.__kernel_mod_sign.keys():
2249
- psi *= x - invX(xQ)
+ from sage.misc.misc_c import prod
+ psi = prod([x - invX(xQ) for xQ in self.__kernel_mod_sign.keys()]) # building the list is not redundant; this is slightly faster
2250
2251
- self.__kernel_polynomial = psi
+ self.__kernel_polynomial = poly_ring(psi)
2252
2253
###################################
2254
# Kohel's Variant of Velu's Formula
0 commit comments