This repository was archived by the owner on Feb 1, 2023. It is now read-only.
Commit 192efaf
Release Manager
Trac #29455: Bug in incidence_matrix of CombinatorialPolyhedron
The `incidence_matrix` method of a 0-dimensional
`CombinatorialPolyhedron` returns an error:
{{{
sage: P = Polyhedron([[0]]); P
A 0-dimensional polyhedron in ZZ^1 defined as the convex hull of 1
vertex
sage: C = P.combinatorial_polyhedron()
sage: C.incidence_matrix()
------------------------------------------------------------------------
---
ValueError Traceback (most recent call
last)
<ipython-input-7-dab311ba238f> in <module>()
----> 1 C.incidence_matrix()
...
ValueError: ``output_dimension`` must be the dimension of proper faces
}}}
We fix this and make the `0`-dimensional case consistent with
`Polyhedron_base`.
Also we make `incidence_matrix` a `chached_method`.
URL: https://trac.sagemath.org/29455
Reported by: gh-LaisRast
Ticket author(s): Jonathan Kliem
Reviewer(s): Laith RastanawiFile tree
1 file changed
+32
-0
lines changed- src/sage/geometry/polyhedron/combinatorial_polyhedron
1 file changed
+32
-0
lines changedLines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
955 | 955 | | |
956 | 956 | | |
957 | 957 | | |
| 958 | + | |
958 | 959 | | |
959 | 960 | | |
960 | 961 | | |
| |||
990 | 991 | | |
991 | 992 | | |
992 | 993 | | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
993 | 1014 | | |
994 | 1015 | | |
995 | 1016 | | |
996 | 1017 | | |
997 | 1018 | | |
998 | 1019 | | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
999 | 1029 | | |
1000 | 1030 | | |
1001 | 1031 | | |
| |||
1010 | 1040 | | |
1011 | 1041 | | |
1012 | 1042 | | |
| 1043 | + | |
| 1044 | + | |
1013 | 1045 | | |
1014 | 1046 | | |
1015 | 1047 | | |
| |||
0 commit comments