-
-
Notifications
You must be signed in to change notification settings - Fork 654
Closed
Milestone
Description
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
Component: geometry
Keywords: polyhedron, double description, precomputed, pyramid
Author: Jonathan Kliem
Branch/Commit: 2b1c64b
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/32152