Skip to content

bug in lawrence_extension #30293

@LaisRast

Description

@LaisRast

The method lawrence_extension of Polyhedron does not work when the point at which we do the lawrence_extension has a different base_ring than the Polyhedron:

sage: polytopes.cube().lawrence_extension([5/2,0,0])
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
...
TypeError: no conversion of this rational to integer

The bug was introduced in #27926.

We fix this and add a method _test_lawrence to systematically test the lawrence construction.

CC: @jplab @kliem

Component: geometry

Keywords: polytope, lawrence_extension

Author: Jonathan Kliem

Branch/Commit: 539930e

Reviewer: Laith Rastanawi

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions