This repository was archived by the owner on Jan 30, 2023. It is now read-only.
Commit ba54691
Release Manager
Trac #31253: Put equations in stable position for backend cdd
Currently, equations positions in Hrepresentation of backend `cdd`
depends on the input:
{{{
sage: P = polytopes.permutahedron(2, backend='cdd')
sage: P.Hrepresentation()
(An equation (1, 1) x - 3 == 0,
An inequality (0, 1) x - 1 >= 0,
An inequality (1, 0) x - 1 >= 0)
sage: Q = Polyhedron(P.vertices(), backend='cdd')
sage: Q.Hrepresentation()
(An inequality (-1, 0) x + 2 >= 0,
An inequality (1, 0) x - 1 >= 0,
An equation (1, 1) x - 3 == 0)
}}}
This leads to the following failure:
{{{
sage: [x.ambient_Hrepresentation() for x in P.facets()]
[(An inequality (1, 0) x - 1 >= 0, An inequality (0, 1) x - 1 >= 0),
(An inequality (1, 0) x - 1 >= 0, An equation (1, 1) x - 3 == 0)]
}}}
We fix this by putting equations always in the same position.
URL: https://trac.sagemath.org/31253
Reported by: gh-kliem
Ticket author(s): Jonathan Kliem
Reviewer(s): Matthias KoeppeFile tree
3 files changed
+26
-5
lines changed- build/pkgs/configure
- src/sage/geometry/polyhedron
3 files changed
+26
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
241 | 257 | | |
242 | 258 | | |
243 | 259 | | |
| |||
271 | 287 | | |
272 | 288 | | |
273 | 289 | | |
274 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
275 | 296 | | |
276 | 297 | | |
277 | 298 | | |
| |||
0 commit comments