-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Make rank return an Integer object #35519
Conversation
This seems like a good fix, but I think a better fix would be to make the degree method of an Ore polynomial return an Integer object:
|
Agreed. |
The docstring linter complains:
|
I also agree. Antoine, are you going to implement this? |
I can! |
The degree of an Ore polynomial should now be an You'll notice that some tests fail: they are related to multi polynomials, and are also present on the |
Thanks Antoine! It all looks good to me. I'll approve once the linter is fixed and the actions are done. |
src/sage/rings/function_field/drinfeld_modules/drinfeld_module.py
Outdated
Show resolved
Hide resolved
Thank you Xavier. Co-authored-by: Xavier Caruso <xcaruso@users.noreply.github.com>
Documentation preview for this PR is ready! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me as well.
Thank you Volker. |
📚 Description
The following raises an error:
There are at least two possible fixes:
rank
return anInteger
object.cat.random_object
accept bothInteger
s andint
s.I suggest the former, and provide an implementation.
📝 Checklist
⌛ Dependencies