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 zero-dimensional cone in cones in PolyhedralGeometry #4336

Merged
merged 6 commits into from
Nov 21, 2024

Conversation

paemurru
Copy link
Contributor

By Definition 1.2.1 in [CLS11](@cite), the set {0} is a cone.
The function cones(X, 0) now returns an iterator that returns the zero-dimensional cone, provided the lineality space has length zero, fixing a bug.
If n is negative, then cones(X, n) now returns an empty iterator, fixing the type instability.

Copy link
Member

@benlorenz benlorenz left a comment

Choose a reason for hiding this comment

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

Thanks, indeed returning nothing seems wrong in that case. I have added a few suggestions for improvements.

Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.50%. Comparing base (aa41156) to head (53ad859).
Report is 239 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4336   +/-   ##
=======================================
  Coverage   84.50%   84.50%           
=======================================
  Files         644      645    +1     
  Lines       85606    85624   +18     
=======================================
+ Hits        72339    72357   +18     
  Misses      13267    13267           
Files with missing lines Coverage Δ
src/PolyhedralGeometry/PolyhedralFan/properties.jl 98.41% <100.00%> (+0.07%) ⬆️

... and 2 files with indirect coverage changes

paemurru and others added 3 commits November 20, 2024 20:02
Co-authored-by: Benjamin Lorenz <benlorenz@users.noreply.github.com>
Co-authored-by: Benjamin Lorenz <benlorenz@users.noreply.github.com>
Co-authored-by: Benjamin Lorenz <benlorenz@users.noreply.github.com>
@lgoettgens lgoettgens added the topic: polyhedral geometry Issue concerns polyhedral geometry code label Nov 21, 2024
@lgoettgens lgoettgens requested a review from benlorenz November 21, 2024 14:08
@lkastner lkastner merged commit de39b82 into oscar-system:master Nov 21, 2024
30 checks passed
@paemurru paemurru deleted the ep/fix_empty_cones branch November 21, 2024 17:41
benlorenz pushed a commit that referenced this pull request Dec 12, 2024
(cherry picked from commit 23716cc)
(cherry picked from commit 0bdde45)
(cherry picked from commit 6045366)
(cherry picked from commit 4c2f909)
(cherry picked from commit 5955eaa)
(cherry picked from commit 53ad859)
@benlorenz benlorenz mentioned this pull request Dec 12, 2024
benlorenz added a commit that referenced this pull request Dec 13, 2024
Backports for release 1.2.2:

fix galois_group problem. #4396
Fix zero-dimensional cone in cones in PolyhedralGeometry #4336
Fix up generic characteristic method for localized rings. #4346
test/PolyhedralGeometry: remove some prefer blocks #4351
Add comment about bibtool version, minor fix in testsuite #4356
Add hash method for RayVector #4354
Fix indent in AlgebraicCycles.md #4368
Fix toric typo #4367
@HereAround HereAround added the release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: polyhedral geometry Issue concerns polyhedral geometry code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants