-
-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #29325: Set up permutahedron with both Vrep and Hrep (if backend…
… supports it) We set up the permutahedron with both Vrepresenation and Hrepresentation, if the backend supports it. If the backend supports precomputed data (currently `field`) this is much faster. Otherwise, this is a bit faster, as the Hrepresentation seems to be the better choice. Before this ticket: {{{ sage: %timeit P = polytopes.permutahedron(6) # using ppl 10 loops, best of 5: 56.5 ms per loop sage: %timeit P = polytopes.permutahedron(7) # using ppl 1 loop, best of 5: 1.57 s per loop }}} With this ticket: {{{ sage: %timeit P = polytopes.permutahedron(6) # using ppl 10 loops, best of 5: 34.2 ms per loop sage: %timeit P = polytopes.permutahedron(7) # using ppl 1 loop, best of 5: 1.04 s per loop sage: %time P = polytopes.permutahedron(8, backend='field') CPU times: user 587 ms, sys: 20 ms, total: 607 ms Wall time: 607 ms sage: %time P = polytopes.permutahedron(9, backend='field') CPU times: user 5.08 s, sys: 248 ms, total: 5.33 s Wall time: 5.33 s }}} Note that `field` is much slower than `ppl` before this ticket and the timings are therefore omitted. As the order of Vrepresentation and Hrepresentation changes, a lot of tests need to be fixed. URL: https://trac.sagemath.org/29325 Reported by: gh-kliem Ticket author(s): Jonathan Kliem Reviewer(s): Jean-Philippe Labbé, Matthias Koeppe
- Loading branch information
Showing
7 changed files
with
165 additions
and
123 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.