Skip to content

fix lawrence_extension and lawrence_polytope for backend field #28725

@LaisRast

Description

@LaisRast

The methods lawrence extension and lawrence_polytope of Polyhedron do not work when the backend is field.

P = Polyhedron([[1,3], [3,4]], backend="field")
P.lawrence_extension([10,20])
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
TypeError: 'NoneType' object is not iterable

We fix this by properly initializing them with zero rays/lines instead of None.

CC: @jplab @kliem

Component: geometry

Keywords: polytopes, lawerence

Author: Laith Rastanawi, Jonathan Kliem

Branch/Commit: 50f9232

Reviewer: Laith Rastanawi, Jonathan Kliem

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions