Skip to content

Commit

Permalink
Remove @cached_function for charpoly and matrix computations
Browse files Browse the repository at this point in the history
  • Loading branch information
kryzar committed Aug 9, 2024
1 parent b50fd21 commit a1c9106
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ def __init__(self, gen, category):
self._frobenius_trace = None
self._frobenius_charpoly = None

@cached_method
def _frobenius_matrix_crystalline(self):
r"""
Return the matrix representing the Frobenius endomorphism on the
Expand Down Expand Up @@ -230,7 +229,6 @@ def companion(order):
reduced_companions.append(M)
return (prod(reduced_companions) * companion_step * companion_initial)

@cached_method
def _frobenius_matrix_CSA(self):
r"""
Return the matrix of the left-multiplication by `\phi_T` with
Expand Down Expand Up @@ -469,7 +467,6 @@ def frobenius_charpoly(self, var='X', algorithm=None):
self._frobenius_charpoly = getattr(self, method_name)
return self._frobenius_charpoly.change_variable_name(var)

@cached_method
def _frobenius_charpoly_CSA(self):
r"""
Return the characteristic polynomial of the Frobenius
Expand Down Expand Up @@ -512,7 +509,6 @@ def _frobenius_charpoly_CSA(self):
for j in range(r+1)]
return PolynomialRing(A, name=var)(coeffs)

@cached_method
def _frobenius_charpoly_crystalline(self):
r"""
Return the characteristic polynomial of the Frobenius
Expand Down Expand Up @@ -576,7 +572,6 @@ def _frobenius_charpoly_crystalline(self):
coeffs_A = [A([x.in_base() for x in coeff]) for coeff in charpoly_K]
return PolynomialRing(A, name=var)(coeffs_A)

@cached_method
def _frobenius_charpoly_gekeler(self):
r"""
Return the characteristic polynomial of the Frobenius
Expand Down Expand Up @@ -658,7 +653,6 @@ def _frobenius_charpoly_gekeler(self):
for j in range(shifts[i])])
return PolynomialRing(A, name=var)(char_poly + [1])

@cached_method
def _frobenius_charpoly_motive(self):
r"""
Return the characteristic polynomial of the Frobenius
Expand Down

0 comments on commit a1c9106

Please sign in to comment.