Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #32152: Set up pyramid with both Vrep and Hrep
We set up the pyramid over a polyhedron with the double description. Before: {{{ sage: P = polytopes.permutahedron(6) sage: %time Q = P.pyramid() CPU times: user 99.4 ms, sys: 0 ns, total: 99.4 ms Wall time: 98 ms sage: P = polytopes.hypercube(8) sage: %time Q = P.pyramid() CPU times: user 34.2 ms, sys: 24 µs, total: 34.2 ms Wall time: 33.3 ms sage: P = polytopes.cross_polytope(8) sage: %time Q = P.pyramid() CPU times: user 40.5 ms, sys: 3.96 ms, total: 44.5 ms Wall time: 43.3 ms sage: P = polytopes.hypercube(6, backend='field') sage: %time Q = P.pyramid() CPU times: user 974 ms, sys: 0 ns, total: 974 ms Wall time: 973 ms }}} After: {{{ sage: P = polytopes.permutahedron(6) sage: %time Q = P.pyramid() CPU times: user 119 ms, sys: 197 µs, total: 120 ms Wall time: 118 ms sage: P = polytopes.hypercube(8) sage: %time Q = P.pyramid() CPU times: user 30.5 ms, sys: 3.92 ms, total: 34.4 ms Wall time: 33.4 ms sage: P = polytopes.cross_polytope(8) sage: %time Q = P.pyramid() CPU times: user 40.4 ms, sys: 0 ns, total: 40.4 ms Wall time: 39.7 ms sage: P = polytopes.hypercube(6, backend='field') sage: %time Q = P.pyramid() CPU times: user 8.04 ms, sys: 0 ns, total: 8.04 ms Wall time: 7.99 ms sage: P = polytopes.hypercube(10, backend='field') sage: %time Q = P.pyramid() CPU times: user 46.4 ms, sys: 98 µs, total: 46.5 ms Wall time: 45.6 ms }}} URL: https://trac.sagemath.org/32152 Reported by: gh-kliem Ticket author(s): Jonathan Kliem Reviewer(s): Travis Scrimshaw
- Loading branch information