-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
Use CombinatorialPolyhedron to obtain faces lattice of polyhedra #28982
Comments
Branch: public/28982 |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
I changed to face lattice not to be set up with linear extension anymore. New commits:
|
Changed branch from public/28982 to public/28982-reb |
comment:6
Few comments:
I will go more in depth soon. Does this mean that we can remove the file |
New commits:
|
Changed branch from public/28982-reb to public/28982-reb2 |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
Batch modifying tickets that will likely not be ready for 9.1, based on a review of the ticket title, branch/review status, and last modification date. |
Reviewer: Jean-Philippe Labbé |
comment:11
Suggestions: + .. NOTE::
- The face lattice is not cached, as long as this would create a memory leak.
+ The face lattice is not cached, as long as this creates a memory leak, see :trac:`28982`. Hasse is a lastname, so you can capitalize it within the documentation. Could the function below have more information? Like which order is meant to be simulated here? Inclusion or lex on indices of vertices, etc? Just one more sentence to specify might be nice? + def __lt__(self, other):
+ r"""
+ Compare faces of the same polyhedron.
+
+ EXAMPLES::
+
+ sage: P = polytopes.simplex()
+ sage: C = CombinatorialPolyhedron(P)
+ sage: F1 = C.face_by_face_lattice_index(0)
+ sage: F2 = C.face_by_face_lattice_index(1)
+ sage: F1 < F2
+ True
+ """
+ return hash(self) < hash(other) Is there a reason why the hasse diagram of the combinatorial polyhedron is not cached? |
Changed branch from public/28982-reb2 to public/28982-reb3 |
comment:26
Needs rebase (build fails). |
Changed branch from public/28982-reb6 to public/28982-reb7 |
comment:28
The comment needs rewording |
Changed branch from public/28982-reb7 to public/28982-reb8 |
comment:31
I don't fully understand what's happening in that hash function. If one uses the face iterator in non-dual mode, is the resulting order relation still correct? |
Changed reviewer from Jean-Philippe Labbé to Jean-Philippe Labbé, Matthias Koeppe |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:33
Replying to @mkoeppe:
You are right. |
comment:35
Thank you. |
Changed branch from public/28982-reb8 to |
We use
CombinatorialPolyhedron
to compute the face lattice of a polyhedron.Along the way we implement
hasse_diagram
forCombinatorialPolyhedron
andPolyhedron_base
.Instead of caching
face_lattice
, we cachehasse_diagram
now.This is much slower, but removes a memory leak. As
hasse_diagram
is hardly used with #28646, this seems to be reasonable.Caching the face lattice does create a memory leak:
Depends on #29583
CC: @jplab @LaisRast
Component: geometry
Keywords: polyhedron, face lattice
Author: Jonathan Kliem
Branch/Commit:
6b7b5b6
Reviewer: Jean-Philippe Labbé, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/28982
The text was updated successfully, but these errors were encountered: