-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Bug in h_star_vector for polytopes with the normaliz backend #33847
Labels
Milestone
Comments
This comment has been minimized.
This comment has been minimized.
New commits:
|
Commit: |
comment:4
Output is missing in the new doctest |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
please fill the "Authors" box |
Author: Yuan Zhou |
comment:9
Patchbot reports one doctest failure, as follows. I'm not sure if it is related.
|
comment:10
unrelated, that's #33834 |
Reviewer: Matthias Koeppe |
Changed branch from u/yzh/bug_in_h_star_vector_for_polytopes_with_the_normaliz_backend to |
This was referenced May 22, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dr. Ben Braun reported the following error.
The h-star-vector records the coefficients of the polynomial in the
numerator of the Ehrhart series of a lattice polytope.
The method h_star_vector() for polytopes with the normaliz backend was implemented in #28413.
The implementation seems to have an error, namely that it drops internal zeros from the vector.
Example:
Actually, the correct return should be
[1, 0, 2]
.This bug is caused by the line 1437 of
src/sage/geometry/polyhedron/backend_normaliz.py
, which forgets to passsparse=False
intoself.ehrhart_series().numerator().coefficients()
.We fix the bug by changing this line to
return self.ehrhart_series().numerator().list()
.CC: @braunmath @sophiasage @jplab @fchapoton @w-bruns @videlec @mkoeppe
Component: geometry
Keywords: polytopes, normaliz
Author: Yuan Zhou
Branch/Commit:
6027fb1
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/33847
The text was updated successfully, but these errors were encountered: