Skip to main content

passagemath: Reverse search for vertex enumeration and convex hulls with lrslib

Project description

About SageMath

“Creating a Viable Open Source Alternative to

Magma, Maple, Mathematica, and MATLAB”

Copyright (C) 2005-2024 The Sage Development Team

https://www.sagemath.org

SageMath fully supports all major Linux distributions, recent versions of macOS, and Windows (Windows Subsystem for Linux).

See https://doc.sagemath.org/html/en/installation/index.html for general installation instructions.

About this pip-installable distribution package

This pip-installable distribution passagemath-lrslib provides an interface to lrslib by David Avis, an implementation of the reverse search algorithm for vertex enumeration and convex hull problems.

What is included

  • Binary wheels on PyPI contain prebuilt copies of lrslib executables.

Examples

Using lrslib programs on the command line:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-lrslib" sage -sh -c lrs
*lrs:lrslib v.7.1 2021.6.2(64bit,lrslong.h,hybrid arithmetic)

Finding the installation location of an lrslib program:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-lrslib[test]" ipython

In [1]: from sage.features.lrs import LrsNash

In [2]: LrsNash().absolute_filename()
Out[2]: '/Users/mkoeppe/.local/pipx/.cache/db3f5a0e2996f81/lib/python3.11/site-packages/sage_wheels/bin/lrsnash'

Use with sage.game_theory:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-lrslib[test]" ipython

In [1]: from sage.all__sagemath_lrslib import *

In [2]: A = matrix([[1, -1], [-1, 1]]); B = matrix([[-1, 1], [1, -1]])

In [3]: matching_pennies = NormalFormGame([A, B])

In [4]: matching_pennies.obtain_nash(algorithm='lrs')
Out[4]: [[(1/2, 1/2), (1/2, 1/2)]]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

passagemath_lrslib-10.4.60.tar.gz (3.8 kB view details)

Uploaded Source

Built Distributions

passagemath_lrslib-10.4.60-cp312-cp312-musllinux_1_2_x86_64.whl (30.2 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

passagemath_lrslib-10.4.60-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (631.1 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

passagemath_lrslib-10.4.60-cp312-cp312-macosx_14_0_arm64.whl (610.5 kB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_lrslib-10.4.60-cp312-cp312-macosx_13_0_x86_64.whl (693.8 kB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

passagemath_lrslib-10.4.60-cp311-cp311-musllinux_1_2_x86_64.whl (30.2 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

passagemath_lrslib-10.4.60-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (630.9 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

passagemath_lrslib-10.4.60-cp311-cp311-macosx_14_0_arm64.whl (610.5 kB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_lrslib-10.4.60-cp311-cp311-macosx_13_0_x86_64.whl (693.8 kB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

passagemath_lrslib-10.4.60-cp310-cp310-musllinux_1_2_x86_64.whl (29.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

passagemath_lrslib-10.4.60-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (630.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

passagemath_lrslib-10.4.60-cp310-cp310-macosx_14_0_arm64.whl (610.7 kB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_lrslib-10.4.60-cp310-cp310-macosx_13_0_x86_64.whl (694.0 kB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_lrslib-10.4.60-cp39-cp39-musllinux_1_2_x86_64.whl (29.1 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

passagemath_lrslib-10.4.60-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (629.8 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

passagemath_lrslib-10.4.60-cp39-cp39-macosx_14_0_arm64.whl (610.7 kB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_lrslib-10.4.60-cp39-cp39-macosx_13_0_x86_64.whl (694.0 kB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

Details for the file passagemath_lrslib-10.4.60.tar.gz.

File metadata

  • Download URL: passagemath_lrslib-10.4.60.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for passagemath_lrslib-10.4.60.tar.gz
Algorithm Hash digest
SHA256 a2fefb65272ab086ab23db865acb146c3950fcbf602787ebd0591073faebb14d
MD5 270f2b643cd2752e9720f99ad07fbd70
BLAKE2b-256 7241b315e6b58a022c8458081483f546820ee8ce449297510912c407cbde556a

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 be047ce1b540030d66c9072b96caf860a05962ea6ba9b4281eea58aee74a1c59
MD5 0e0d9f90f840301a3ac351a11ddc6b7d
BLAKE2b-256 7a958e35aa32e10688b15cce9c296733c10f986e258af396ef28e58f96161afd

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1a805939d6c0ec0a8b4c066239c67d6e1893699023e47d2ad9d6a43b2114402f
MD5 3362901c6fca633bc537f40ea8c93c9c
BLAKE2b-256 f4f1e6c4ebea11aaf325c8aa4499aacaba6323be92c62e50ef1aaf03a4dbfeac

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 24e76e6718e5dbd9696f043cdebf3b6ce5d89ea89d483e5ec393d0e6fd19e427
MD5 c6c733d7cdb6050df2238627cdcd88dc
BLAKE2b-256 55f810ff77f17dc577bb918cbc427c8f946b3c16581d8e8be296760ab4f22cd7

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2b6607d71177ac31fcba38f14555fee8b8113ca110f19caf0d7aef59508c9afd
MD5 7300abd6687e1b9392213172e428b6bc
BLAKE2b-256 bdfee3aa6d3eeda4914dec25ce8acacc3b8cd02bb4156c0659ebcd05707a9410

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 07dfd60ac822435f4ae39f7dda76e0a0346ebbfa8476514d79953b2631ad2646
MD5 4e8d42166c8edfd842c2cbbe896349cf
BLAKE2b-256 dbc9a6c49e179ed2f5608b5f434a478cd655600aa01aa54dd1d2584ebccde8ac

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8afdd28898b04b7c4513e49bbf951ea9a2bd2912853cccc70ae1672bc7b31d3
MD5 1a6f9b93ce7874e5bc5d5fbaa53004df
BLAKE2b-256 8cd8b032ef8660fd59110c52934c267c55aae873671a52fbd604d4d080dfed43

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 5d65ccd41557acbb97a58f73bc978ae9a55a874d0f79babea329fed373bc7f8e
MD5 d6d61019bcce40f03b0d5a28ff3aba7b
BLAKE2b-256 6a0370238dc7ebd7f31d34958b1481136fe2dc62a83334b60843869b6dd9d85a

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0a3bb5d3392e7d1d0621489928db0c758540315e75a6ec5aebe6cc69d8dcbfbd
MD5 3adc730c10357f488948e3f2f05fce21
BLAKE2b-256 85d90b264f7710ae49bc21573e4365c7cfccb8abf5fd0df5affab641f9a57f09

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b5a06dbdbc91ba57f6dd31630a41f82410b48962a34dd4761f621d4d765e0013
MD5 90bfd529a45ecefd9864978e0c054c4b
BLAKE2b-256 00ac72bd95b80870d1c53decf40e52a1f0d716213046c51f838907f4272cff1d

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7bb678c65bff1a6de7b8efb62231aa42f8d61ffb2a30c188f7a841a18b5dbdf7
MD5 c42a680473f2adb1b0e08f514b9a67f2
BLAKE2b-256 b5a68fff2c35c4867cf256540ebd6c7fd1b5ee47c81ece7f31b63c6aedb139aa

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f2e79f54d94d7012f258e2f7b4976895ea00618d6579c8b78efad60c902f73b1
MD5 f6988f73e8bbf22d2ef66717eb982590
BLAKE2b-256 ed4461aeceb705bb0f14e5f14cfd0d9f890611986893b18920d9d86c3fda21a4

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 57790dff47a1f6552f9bc4bde41fddc62add21dac4b62951a738506e77ac978c
MD5 7b453f9ec2eef7861d73d9ada4863832
BLAKE2b-256 ac96820211d28f3ff1ac090cb5e76674c830eac04b997ff0dbd9eccc23057610

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5f0e207c2b33d80a08aac8b914cb6b284140f4a263a472a4bfb44cdb329434d6
MD5 6ae1d4c389bdd618237bab25d3b69b66
BLAKE2b-256 b15f7563096f84513f15a628cdadf566b39184cc50a40a35b575e23876b7b0df

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 567a57f24b268a777a68607a5f01df7180bdf257644856fab665136279297b6f
MD5 679025c10f80f5a8004772088935a008
BLAKE2b-256 0172f9e274f78062e011249e02a69e707d186ee4b573c6d79c402ff48877c423

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d600589186322ea925880786632173b747b1a3e4ab0b736738f7e004a1db07a9
MD5 bc7a72a840ca6d90ca6ea0797cc89571
BLAKE2b-256 6d7c7d891cc0ca55600b4d66e10b5c23cf6777766fcf0d86686b78e998ee3818

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.60-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.60-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 28c0284cc0713e71eb95b9988cc99e7b9c0143c07e3c7ed4391206ac97d15ab9
MD5 66d978d65d63fb095c5965a57af7a2df
BLAKE2b-256 89e2bebfdda1e97a30d1305fb86d3ea958f118160972ccf45d6312f1b16c30b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page