-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
Wrong f-vector for unbounded polyhedra #26922
Comments
comment:1
This will be probably solved at some point by Also it can be corrected quickly now by calculating the dimension of the first level in the face lattice. |
comment:2
Retarging tickets optimistically to the next milestone. If you are responsible for this ticket (either its reporter or owner) and don't believe you are likely to complete this ticket before the next release (8.7) please retarget this ticket's milestone to sage-pending or sage-wishlist. |
comment:4
As the Sage-8.8 release milestone is pending, we should delete the sage-8.8 milestone for tickets that are not actively being worked on or that still require significant work to move forward. If you feel that this ticket should be included in the next Sage release at the soonest please set its milestone to the next release milestone (sage-8.9). |
comment:5
In principle, the problem is that the face lattice has four elements, but the elements on the second level are not 0-dimensional, but 1-dimensional. So, depending on the definition of the f-vector:
It should return different things. One thing that should be done, is to make this explicit in the documentation of |
comment:6
#27063 will change the calculation of the f-vector (hopefully soon) to make use of This will count the number of faces per dimension, as the docstring of We could make this ticket depend on #27063 and then just append the docstring accordingly. One could also fix it for now (just append a few zeros according to Replying to @jplab:
I think f-vectors of fixed dimension polyhedra should be have sums/addition.
|
comment:7
ping! |
Branch: public/26922 |
comment:8
#28625 fixes this. I added some tests, improved the documentation of New commits:
|
Author: Jonathan Kliem |
Commit: |
Dependencies: #28625 |
comment:9
It would be nice if the note that you gave be in a NOTE environment followed by an appropriate example illustrating what is meant. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:12
May I suggest the following: - In case of a polyhedron with lines (unpointed polyhedron),
- return the number of vertices of the ``Vrepresentation``.
- Wheras the polyhedron has no vertices, this number corresponds
- to the number of `k`-faces, where `k` is the number of lines.
+ If the polyhedron has lines, returns the number of vertices in
+ the ``Vrepresentation``. As the represented polyhedron has
+ no 0-dimensional faces (i.e. vertices), this number corresponds
+ to the number of `k`-faces, where `k` is the number of lines. Somehow, even though I corrected the above warning. I do not like what it says at all for the following reason:
In Sage, the computational convention (or compromise) is that polyhedra without vertices in their V-representation still receive a canonically computed vertex in order to do computations. With this in mind, the second sentence is wrong. Just look at the above polyhedron ---> This warning is more confusing than anything. Please rephrase taking the above three examples in mind and the convention in Sage. |
Reviewer: Jean-Philippe Labbé |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
Looks good to me now |
Changed branch from public/26922 to |
#28625 fixed the
f_vector
in the case of unpointed polyhedra/polyhedra with lines.We add doctests showing that #28625 fixed a bug in
f_vector
.Before:
But this polyhedron does not have zero-dimensional faces, and #28625 has correctly changed that:
Also we add documentation, specifically warning users that the methods
vertices
,vertices_list
,vertices_generator
vertices_matrix
,n_vertices
,treat vertices of the
Vrepresentation
and not vertices of the polyhedron in the unpointed case.Depends on #28625
CC: @jplab @mo271
Component: geometry
Author: Jonathan Kliem
Branch/Commit:
1c5378c
Reviewer: Jean-Philippe Labbé
Issue created by migration from https://trac.sagemath.org/ticket/26922
The text was updated successfully, but these errors were encountered: