Skip to content

Polyhedron class mistreats empty inputs #17339

@darijgr

Description

@darijgr
sage: Polyhedron(ambient_dim=0, ieqs=[], eqns=[], base_ring=QQ)
The empty polyhedron in QQ^0

This should be a one-point polyhedron.

sage: Polyhedron(ambient_dim=2, ieqs=[], eqns=[], base_ring=QQ)
The empty polyhedron in QQ^2

This should be the whole QQ^2.

sage: Polyhedron(ambient_dim=2, vertices=[], rays=[], lines=[], base_ring=QQ)
The empty polyhedron in QQ^2

This is correct, but only because the code misunderstands the empty V-representation as no V-representation given at all.

CC: @vbraun @mkoeppe @tscrim

Component: geometry

Author: Darij Grinberg, Jonathan Kliem

Branch/Commit: c5bf041

Reviewer: Travis Scrimshaw

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions