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

Disallow scaling of quaternion fractional ideals by zero #38963

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

S17A05
Copy link
Member

@S17A05 S17A05 commented Nov 13, 2024

This PR disallows the scaling of quaternion fractional ideals by the zero element of the surrounding quaternion algebra (throwing a ValueError in the process), as the result will by definition not be a fractional ideal. It also adds additional checks to avoid scaling by zero in other tests, which came up in the issue mentioned below, and it adds a missing warning for a long doctest.

Fixes #38947.

Also check in other tests that random scalars are nonzero
Copy link

Documentation preview for this PR (built with commit ae698fb; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Contributor

@GiacomoPope GiacomoPope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a good fix to me, thank you!

@vbraun vbraun merged commit 7c13ae9 into sagemath:develop Nov 16, 2024
24 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

random doctest error in QuaternionFractionalIdeal_rational.is_principal
3 participants