Skip to content

CombinatorialPolyhedron: replace attributes by methods #28605

@kliem

Description

@kliem

Replace attributes in CombinatorialPolyhedron by methods, such that they can potentially be lazily evaluated.

More precisely we replace an attribute by a private attribute (with leading _) and add a method without leading _. E.g. the attribute far_face_tuple is replaced by _far_face_tuple and we add a method far_face_tuple(self). Thus we gain flexibility in the sense that those attributes must not be set on initialization.

This is motivated by #10777.

We remove the attribute Vinv completely, as it is not being used.

CC: @jplab @LaisRast

Component: geometry

Keywords: polytopes, combinatorial polyhedron

Author: Jonathan Kliem

Branch/Commit: d4b3163

Reviewer: Laith Rastanawi, Jean-Philippe Labbé

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions