# Ticket #13212: trac_13212.patch

File trac_13212.patch, 2.6 KB (added by ArgaezG, 9 years ago)

Sage 5.10

• ## sage/modular/hecke/algebra.py

```# HG changeset patch
# User Alejandro Argaez <alejandroargaezg@gmail.com>
# Date 1374590851 0
# Node ID bd4ddf651b1d4f205d81c0585ee10efa3de17b09
# Parent  0f8fd922eaed351e39f913f1317d319dcceb4c01
#13212: Change from subspace.py to submodule.py made

diff --git a/sage/modular/hecke/algebra.py b/sage/modular/hecke/algebra.py```
 a 6144 sage: ModularSymbols(1,4,sign=1).cuspidal_submodule().hecke_algebra().discriminant() 1 sage: H = CuspForms(1, 24).hecke_algebra() sage: H.discriminant() 83041344 """ try: return self.__disc
• ## sage/modular/hecke/submodule.py

`diff --git a/sage/modular/hecke/submodule.py b/sage/modular/hecke/submodule.py`
 a Vdual = A.row_space() return self.ambient_hecke_module().submodule(V, Vdual, check=check) def hecke_bound(self): """ Compute the Hecke bound for self; that is, a number n such that the T_m for m = n generate the Hecke algebra. EXAMPLES:: sage: M = ModularSymbols(24,8) sage: M.hecke_bound() 53 sage: M.cuspidal_submodule().hecke_bound() 32 sage: M.eisenstein_submodule().hecke_bound() 53 """ if self.is_cuspidal(): return self.sturm_bound() else: return self.ambient_hecke_module().hecke_bound() No newline at end of file
• ## sage/modular/modsym/subspace.py

`diff --git a/sage/modular/modsym/subspace.py b/sage/modular/modsym/subspace.py`
 a r, s) self._factorization = sage.structure.factorization.Factorization(D, cr=True) return self._factorization def hecke_bound(self): """ Compute the Hecke bound for self; that is, a number n such that the T_m for m = n generate the Hecke algebra. EXAMPLES:: sage: M = ModularSymbols(24,8) sage: M.hecke_bound() 53 sage: M.cuspidal_submodule().hecke_bound() 32 sage: M.eisenstein_submodule().hecke_bound() 53 """ if self.is_cuspidal(): return self.sturm_bound() else: return self.ambient_hecke_module().hecke_bound() def is_cuspidal(self): """