Skip to content

Commit

Permalink
Change phi_T to f in the CSA loop
Browse files Browse the repository at this point in the history
  • Loading branch information
kryzar committed Aug 9, 2024
1 parent b632a75 commit a801502
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,15 @@ def _frobenius_matrix_CSA(self):
E = self._base
EZ = PolynomialRing(E, name='Z')
n = self._base_degree_over_constants
phi_T = self.gen()
f = self.gen() # phi_T, which is updated in the subsequent loop
t = self.ore_variable()
rows = []
# Compute the reduced charpoly
for i in range(n):
m = phi_T.degree() + 1
row = [EZ([phi_T[jj] for jj in range(j, m, n)]) for j in range(n)]
rows.append(row)
phi_T = t * phi_T
f = t * f # f is phi_T at first
return Matrix(rows)

def frobenius_endomorphism(self):
Expand Down

0 comments on commit a801502

Please sign in to comment.