-
-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #32157: Small improvements for ppl backend
We remove some code duplications in the ppl backend. Along the way we also allow initialization from `ppl_polyhedron`. This saves almost all the time, when extending base ring to `QQ`: Before: {{{ sage: %time P = polytopes.permutahedron(7) CPU times: user 1.51 s, sys: 19.8 ms, total: 1.53 s Wall time: 1.52 s sage: %time P.base_extend(QQ) CPU times: user 1.17 s, sys: 7.78 ms, total: 1.18 s Wall time: 1.18 s A 6-dimensional polyhedron in QQ^7 defined as the convex hull of 5040 vertices }}} After: {{{ sage: %time P = polytopes.permutahedron(7) CPU times: user 1.5 s, sys: 23.4 ms, total: 1.52 s Wall time: 1.52 s sage: %time P.base_extend(QQ) CPU times: user 177 ms, sys: 50 µs, total: 177 ms Wall time: 176 ms A 6-dimensional polyhedron in QQ^7 defined as the convex hull of 5040 vertices }}} URL: https://trac.sagemath.org/32157 Reported by: gh-kliem Ticket author(s): Jonathan Kliem Reviewer(s): Matthias Koeppe
- Loading branch information
Showing
3 changed files
with
182 additions
and
50 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