-
-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #28982: Use CombinatorialPolyhedron to obtain faces lattice of p…
…olyhedra We use `CombinatorialPolyhedron` to compute the face lattice of a polyhedron. Along the way we implement `hasse_diagram` for `CombinatorialPolyhedron` and `Polyhedron_base`. Instead of caching `face_lattice`, we cache `hasse_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: {{{ sage: import gc sage: P = polytopes.cube() sage: P.my_face_lattice = P.face_lattice() sage: n = get_memory_usage() sage: P = polytopes.cube() sage: P.my_face_lattice = P.face_lattice() sage: _ = gc.collect() sage: n == get_memory_usage() False }}} URL: https://trac.sagemath.org/28982 Reported by: gh-kliem Ticket author(s): Jonathan Kliem Reviewer(s): Jean-Philippe Labbé, Matthias Koeppe
- Loading branch information
Showing
6 changed files
with
195 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.