Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac 12866: improve asymptotic of monodromy_weights()
Browse files Browse the repository at this point in the history
This changes monodromy_weights() so that it doesn't need to compute
all O(n^2) ideal products -- rather only O(n), with the corresponding
asymptotic improvement.

This is important for large dimensions where one doesn't use the brandt
matrix method to compute hecke operators, but rather the 'direct' method
which doesn't require to compute all the O(n^2) products either.
  • Loading branch information
tornaria committed Aug 26, 2014
1 parent 1fead1d commit cede6e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sage/modular/quatalg/brandt.py
Expand Up @@ -1413,8 +1413,9 @@ def monodromy_weights(self):
# c * theta(R) = a[0] + a[1]*q + ...
#
# we recover e = a[1]/a[0] regardless of normalization.
bv = self._brandt_series_vectors(2)
w = tuple(bv[i][i][1]/bv[i][i][0]/2 for i in range(len(bv)))
orders = self._ideal_products(diagonal_only=True)
thetas = (R.theta_series_vector(2) for R in orders)
w = tuple(a[1]/a[0]/2 for a in thetas)
self.__monodromy_weights = w
return w

Expand Down

0 comments on commit cede6e1

Please sign in to comment.