Registry / data / passagemath-lrslib

passagemath-lrslib

JSON →
library10.8.4pypypiunverified

passagemath-lrslib provides a Python interface to lrslib for vertex enumeration and convex hull computation using the reverse search algorithm. Version 10.8.4 supports Python 3.11-3.14. Release cadence follows passagemath releases.

pip install passagemath-lrslib
INSTALL
IMPORT
SIG · PASSAGEMATH-LRSLIB
P
passagemath-lrslib
datapythonv10.8.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

polyhedra
from passagemath_lrslib import polyhedra
from passagemath.lrslib import polyhedra

Compute convex hull from a set of points and enumerate vertices.

from passagemath.lrslib import polyhedra # Define points (rows=points, columns=coordinates) points = [[0, 0], [1, 0], [0, 1], [1, 1]] # Compute convex hull vertices vertices = polyhedra.convex_hull(points) print(vertices) # Use environment variable for optional authentication if needed import os api_key = os.environ.get('PASSAGEMATH_API_KEY', '') # Not used in this example; included as placeholder.
lrs --version
Debug
Known issues
breakingpassagemath-lrslib is a replacement for SageMath's lrslib interface. Old imports like `from sage.geometry.polyhedron import Polyhedron` will not work.
fix
Use `from passagemath.lrslib import polyhedra` instead.
affects: >=10.0
gotchaThe `polyhedra` class expects points as a list of lists (rows=points, columns=coordinates). Transposing the matrix leads to incorrect results.
fix
Ensure your input matrix has shape (n_points, n_dimensions).
affects: all
Upgrade
Version history
10.8.4latest on PyPI · released Apr 20, 2026
Audit
Dependencies
passagemathrequiredCore library providing sage-like environment
Agent activity
8 hits · last 30 days
node
4
Resources