Skip to content

Use PPL for facet normals of full-dimensional polytopes #22310

@novoselt

Description

@novoselt

Before:

sage: timeit("LatticePolytope(lattice_polytope.cross_polytope(3).vertices()).facet_normals()")
5 loops, best of 3: 43.2 ms per loop

After:

sage: timeit("LatticePolytope(lattice_polytope.cross_polytope(3).vertices()).facet_normals()")
125 loops, best of 3: 6.81 ms per loop

PPL will of course work for non-full-dimensional polytopes as well, however the treatment of this case is spread around several places and its removal will be treated separately. Once this is done the speed up will be even more significant.

Next in the chain of lattice polytope improvements is #22391

Depends on #22309

CC: @vbraun @tscrim

Component: geometry

Keywords: days85

Author: Andrey Novoseltsev

Branch/Commit: d244793

Reviewer: Travis Scrimshaw

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions