Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting rays from a polytope fails. #6915

Closed
sagetrac-sbarthelemy mannequin opened this issue Sep 10, 2009 · 3 comments
Closed

Getting rays from a polytope fails. #6915

sagetrac-sbarthelemy mannequin opened this issue Sep 10, 2009 · 3 comments

Comments

@sagetrac-sbarthelemy
Copy link
Mannequin

sagetrac-sbarthelemy mannequin commented Sep 10, 2009

See this example:

sage: p=Polyhedron([[0,0],[0,1],[1,0]])
sage: p.rays()                         
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)

/home/seb/.sage/temp/thinbox/5080/_home_seb__sage_init_sage_0.py in <module>()

/home/seb/.local/sage-4.1/local/lib/python2.6/site-packages/sage/geometry/polyhedra.pyc in rays(self)
    607                 return self._rays
    608         except AttributeError:
--> 609             dummy_verts = self.vertices(force_from_ieqs = True)
    610             self._checked_rays = True
    611             return self._rays

/home/seb/.local/sage-4.1/local/lib/python2.6/site-packages/sage/geometry/polyhedra.pyc in vertices(self, force_from_ieqs)
    397         """
    398         if (self._vertices == [] and self._ieqs != []) or force_from_ieqs:
--> 399             temp_poly_object = ieq_to_vert(self._ieqs, linearities = self._linearities, verbose = self._verbose)
    400             self._vertices = temp_poly_object._vertices
    401             self._vertex_incidences = temp_poly_object._vertex_incidences

/home/seb/.local/sage-4.1/local/lib/python2.6/site-packages/sage/geometry/polyhedra.pyc in ieq_to_vert(in_list, linearities, cdd_type, verbose)
   1426     """
   1427     # first we create the input for cddlib:
-> 1428     in_length = len(in_list[0])
   1429     in_str = 'H-representation\n'
   1430     if linearities != []:

IndexError: list index out of range

Component: geometry

Keywords: polyhedra

Issue created by migration from https://trac.sagemath.org/ticket/6915

@sagetrac-mhampton
Copy link
Mannequin

sagetrac-mhampton mannequin commented Nov 13, 2009

comment:1

This will be fixed by #7109.

@vbraun
Copy link
Member

vbraun commented Jan 27, 2010

comment:2

fixed in 4.3.2.alpha0

@vbraun vbraun closed this as completed Jan 27, 2010
@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Jan 28, 2010

comment:3

Replying to @vbraun:

fixed in 4.3.2.alpha0

Make sure you understand the procedure for closing tickets. See http://www.sagemath.org/doc/developer/trac.html#closing-tickets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant