Skip to content

Commit

Permalink
Fix a few lint typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kryzar committed Aug 2, 2024
1 parent 00d1b16 commit 143a5fd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ def frobenius_norm(self):
return self._frobenius_norm

@cached_method
def frobenius_trace(self):
def frobenius_trace(self, algorithm=None):
r"""
Return the Frobenius trace of the Drinfeld module.
Expand Down Expand Up @@ -869,7 +869,7 @@ def frobenius_trace(self):
``CSA`` algorithm is used otherwise.
TESTS:
These test values are taken from :meth:`frobenius_charpoly`::
sage: Fq = GF(9)
Expand Down Expand Up @@ -928,8 +928,9 @@ def frobenius_trace(self):
matrix_method_name = f'_frobenius_matrix_{algorithm}'
if not hasattr(self, matrix_method_name):
raise NotImplementedError(f'algorithm "{algorithm}" not implemented')
matrix = getattr(self, matrix_method_name)(var)
matrix = getattr(self, matrix_method_name)
trace = matrix.trace()
A = self.function_ring()
self._frobenius_trace = A([x.in_base() for x in trace])
return self._frobenius_trace

Expand Down

0 comments on commit 143a5fd

Please sign in to comment.