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

Add a few more ZZIdl methods #1409

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Conversation

fingolfin
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Feb 19, 2024

Codecov Report

Merging #1409 (c1788bb) into master (c336a38) will decrease coverage by 0.16%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1409      +/-   ##
==========================================
- Coverage   70.68%   70.53%   -0.16%     
==========================================
  Files         350      350              
  Lines      111868   111877       +9     
==========================================
- Hits        79075    78910     -165     
- Misses      32793    32967     +174     
Files Coverage Δ
src/AlgAss/AbsAlgAss.jl 92.39% <ø> (ø)
src/NumField/QQ.jl 58.39% <100.00%> (+5.26%) ⬆️

... and 33 files with indirect coverage changes

is_subset(I::ZZIdl, J::ZZIdl) = is_divisible_by(gen(J), gen(I))

radical(I::ZZIdl) = ideal(ZZ, radical(gen(I)))
primary_decomposition(I::ZZIdl) = [ (ideal(ZZ, p^k), ideal(ZZ, p)) for (p,k) in factor(gen(I)) ]
Copy link
Owner

Choose a reason for hiding this comment

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

I think this will fail for the zero ideal?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed, fixed both radical and primary_decomposition for the zero ideal. Also fixed intersect for more or fewer than 2 arguments, and added test cases triggering all that.

@thofma thofma merged commit 57ed2c2 into thofma:master Feb 20, 2024
18 checks passed
@fingolfin fingolfin deleted the mh/ZZIdl-extras branch February 20, 2024 07:35
fieker pushed a commit that referenced this pull request Apr 2, 2024
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.

2 participants