Closed jhpalmieri closed 14 years ago
apply instead of 8650 patch
Attachment: trac_8709.patch.gz
It looks like some sorting issue. I personally think that it would be nice to have some standard sorting of faces (and it is nice to have this sorting documented).
LatticePolytope's sort faces of dimension 0 according to the generating vertices (so that the i-th 0-dimensional face is generated by the i-th vertex) and codimension 1 faces according to the containing facets (so that the i-th codimension-1 face is contained in the i-th facet). I think that these ways of sorting are very natural and it would be nice to have the same for Polyhedra with its V- and H-representations. For other faces there is probably no "canonical" choice, but it would be nice to have something fixed. (Middle dimensional faces of LatticePolytope's are sorted using one of the above ways, depending on working with an "initial polytope" or its polar - this is done to preserve polar duality of faces for reflexive polytopes.)
The attached patch avoids this sorting issue by only examining the extremes of the face lattice, which is where the problems from 8650 were.
The code in the patch is the same as in #8650, therefore it passes all other doctests just as well as before. The sorting issue is not an issue anymore with the modified doctest for these changes. So positive review, but it still would be nice to add some sorting in the future, especially for dim=0 and codim=1 faces.
Reviewer: Andrey Novoseltsev
Author: Marshall Hampton
I'm confused: how is this possibly going to apply over the patch at #8650 (which has been merged into 4.4.alpha0)?
Oops, good point. I am attaching a new patch that just replaces the doctest. Can I still leave it at positive review?..
Attachment: trac_8709_fix_sorting_issue_from_8650_on_itanium.patch.gz
Apply only this one.
Replying to @novoselt:
Oops, good point. I am attaching a new patch that just replaces the doctest. Can I still leave it at positive review?..
Yes.
Merged: sage-4.4.alpha1
Merged "trac_8709_fix_sorting_issue_from_8650_on_itanium.patch" into 4.4.alpha1.
On one platform (an itanium machine running red hat), I see this:
This is with Sage 4.4.alpha0, and it comes from the patch in ticket #8650.
CC: @sagetrac-mhampton @novoselt
Component: geometry
Author: Marshall Hampton
Reviewer: Andrey Novoseltsev
Merged: sage-4.4.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/8709