Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete _check_rank_two method for Drinfeld modules #38199

Merged
merged 4 commits into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions src/sage/rings/function_field/drinfeld_modules/drinfeld_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,27 +759,6 @@ def _Hom_(self, other, category):
from sage.rings.function_field.drinfeld_modules.homset import DrinfeldModuleHomset
return DrinfeldModuleHomset(self, other, category)

def _check_rank_two(self):
r"""
Raise ``NotImplementedError`` if the rank is not two.

TESTS::

sage: Fq = GF(25)
sage: A.<T> = Fq[]
sage: K.<z12> = Fq.extension(6)
sage: p_root = 2*z12^11 + 2*z12^10 + z12^9 + 3*z12^8 + z12^7 + 2*z12^5 + 2*z12^4 + 3*z12^3 + z12^2 + 2*z12
sage: phi = DrinfeldModule(A, [p_root, z12^3, z12^5])
sage: phi._check_rank_two()
sage: phi = DrinfeldModule(A, [p_root, 1])
sage: phi._check_rank_two()
Traceback (most recent call last):
...
NotImplementedError: rank must be 2
"""
if self.rank() != 2:
raise NotImplementedError('rank must be 2')

def _latex_(self):
r"""
Return a LaTeX representation of the Drinfeld module.
Expand Down
Loading