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

fix: univariate polynomial rings over zero rings #1911

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Conversation

thofma
Copy link
Member

@thofma thofma commented Nov 24, 2024

No description provided.

@thofma
Copy link
Member Author

thofma commented Nov 24, 2024

maybe this one here first, then I could improve #1910

Copy link

codecov bot commented Nov 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.17%. Comparing base (77591f4) to head (439a509).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1911      +/-   ##
==========================================
- Coverage   88.17%   88.17%   -0.01%     
==========================================
  Files         120      120              
  Lines       30298    30301       +3     
==========================================
+ Hits        26716    26718       +2     
- Misses       3582     3583       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -200,7 +200,7 @@ number_of_generators(R::PolyRing) = 1

iszero(a::PolynomialElem) = length(a) == 0

isone(a::PolynomialElem) = length(a) == 1 && isone(coeff(a, 0))
isone(a::PolynomialElem) = length(a) <= 1 && isone(coeff(a, 0))
Copy link
Collaborator

Choose a reason for hiding this comment

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

does coeff(a, 0) even work for length(a) == 0 or does that error?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

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

nice!

@thofma
Copy link
Member Author

thofma commented Nov 25, 2024

I will keep the caching of triviality for now. We can remove it later if we want.

@thofma thofma merged commit 957bd7a into master Nov 26, 2024
29 checks passed
@thofma thofma deleted the th/polyzero branch November 26, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants