Skip to content

Use PPL for computing vertices of LatticePolytope #22309

@novoselt

Description

@novoselt

This gives drastic improvement for small polytopes which is the target case. Before:

sage: timeit("LatticePolytope(lattice_polytope.cross_polytope(3).vertices())")
25 loops, best of 3: 35.2 ms per loop

After:

sage: timeit("LatticePolytope(lattice_polytope.cross_polytope(3).vertices())")
625 loops, best of 3: 684 µs per loop

Next in the chain of lattice polytope improvements is #22310

Depends on #22304

CC: @vbraun

Component: geometry

Author: Andrey Novoseltsev

Branch/Commit: c820307

Reviewer: Travis Scrimshaw

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions