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.59.tar.gz (3.8 kB view details)

Uploaded Source

Built Distributions

passagemath_lrslib-10.4.59-cp312-cp312-musllinux_1_2_x86_64.whl (30.3 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

passagemath_lrslib-10.4.59-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.59-cp312-cp312-macosx_14_0_arm64.whl (610.5 kB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_lrslib-10.4.59-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.59-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.59-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.59-cp311-cp311-macosx_14_0_arm64.whl (610.5 kB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_lrslib-10.4.59-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.59-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.59-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.59-cp310-cp310-macosx_14_0_arm64.whl (610.7 kB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_lrslib-10.4.59-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.59-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.59-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.59-cp39-cp39-macosx_14_0_arm64.whl (610.7 kB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_lrslib-10.4.59-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.59.tar.gz.

File metadata

  • Download URL: passagemath_lrslib-10.4.59.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.59.tar.gz
Algorithm Hash digest
SHA256 a6ebc894fa6047399aa8430c3b72331cd21eb519cb5a5be4c0f3cd54e235e3d9
MD5 cd01b36d3f28d8b2f23b6de6468e44fb
BLAKE2b-256 f3639f4a3081392a9ea3d70d8230c084c6f5395e522a516c17bd23c18c82ff47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7defbf2dc2fb57702bfa166d3d9dc8e17877db148064cd6a3bb4174431916e36
MD5 db0aacf523c559abf3e0cb91a9c11592
BLAKE2b-256 a4927457f3384aa8e4d713c26038938e73f65abdd13b496e8ffcd29b9d4d467a

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.59-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.59-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 03d6433f22ef83feb040bffd1143d4835324c3613eb16bfcf3318400a4747e3e
MD5 579be90b55f3e07bc4b8c67a67c55423
BLAKE2b-256 826ce15356cc93f514a3271f85183463ef2a2d9a5b83f46a576ae84bb0cfc31b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 37db9f198a0c5f73bc942ea6a0f4ce14546a9118f82f3cf2c4f47e1a160eab24
MD5 748cd12ceb9ef3189c7e809fa289dad4
BLAKE2b-256 3cc3bcfeeff5cdd36f0270bf3f6694af5918f5b8215df4fecf8d66a5479c6f48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2f34e5310c0ce26c210087ffa9914718dfe8740cfb812ea5bfa3316ec9d9923f
MD5 324802b0785ee8fa38e9a48cb4a1931d
BLAKE2b-256 bddb1bf1e99a0dd2d50903d3a3fc4f312dcd6415d55d50ea99d4f00feebef91b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 722766d5b62469f2ef9f47034752d5ee1cc2e41132065cf9cb876954e7ca4070
MD5 9fdd6fcec7a3770bca31d3ee890b7889
BLAKE2b-256 02ee22387327777f3e93570d4632be5d272b68ce8462facc5accb7a32e6d45a5

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.59-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.59-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 de65bd2be6e2e57afe4c250c920156093c3ad4ba5d021c9aa82a3b7516838fa6
MD5 ee8f392f71727d91d5f6869e7d4a93b3
BLAKE2b-256 19f47bc603a9a96d739e335a6b75b7520cc7e9b49e69421d3ad2ffcc24cc5722

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f1b6a3bdfe8de6428691c74b5da551ecb72d7b7f9f5ec870f44b8b2528143cea
MD5 ab984004ce2f53e5e2fdff5af1e2ba48
BLAKE2b-256 b2a39850963b2fab6d7341d2a73040157ce37e0c254f0ae8e75e09c3be2299fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 59baf8031a154b9c9702e72582e8257ca8f70a5e3c1dece24e2745fa29ef6e5b
MD5 063825a226d652b7c71595ff367fd082
BLAKE2b-256 2f007366346d81208c767b1cda5458232a6b367395892c5506957c723738af79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ab89485a5a853b0c5e4c6a5fdad339d509d46f7d1a2f81f1bef868655ea58a36
MD5 9745fa0576fc8791c175f2d99f3d535d
BLAKE2b-256 a24df3d7da3e46df03e10adaea6162767f6c5564fdd60853ffbef63ca61fc17b

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.59-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.59-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3831bdaf4c30f8451aac76fe9d2cbcd2df9163849408e0a34e6ad8dc89a9efcd
MD5 288ed5f1d2d97c224a0f441a6caf6326
BLAKE2b-256 9dd51796718d2928f863cf91a9de210fb28fe912e3a37f40c087e60db131a9bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d5d5f80f9b9d0783b6640f328c9d64c74d3b0b748a8ee73c2972da1eff3e78c0
MD5 68e894530a105701651b51de17335c3a
BLAKE2b-256 13297216016945c808d865c2d2bb138c83ad95f44e0191bddd8d4f69e4ae90d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c711c27216523207b55113668472aa0266e4dcb0c031abc6751f05010b81e285
MD5 85af54e2d6bd54617735531e335244eb
BLAKE2b-256 9bb90ffbc41717b9f016304842a766dd813669da315fb08787dffe0840dc859f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 de223a8136af01333c03debfeefcbf4d7d1bfff59c3eb147dd2ee9f2c3b40b5f
MD5 116fbdedbf3738b544d47272f23f08b5
BLAKE2b-256 b317c328f8d2d438b4c140062129abaa8f11b9b40ded2a875863e300e02b0ac2

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.59-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.59-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6be24550d091e626d32730a72d31acff145fb55105f412996f1afc439adb5b80
MD5 e0f5b0f984a1b73c9d77e1cc7048a9f8
BLAKE2b-256 43bf3b4074d2fc4730ba9d5a852b08a54058e957bb2ad3ab660a67be49070f72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 863ea3d12af1d97aa42eb5e2ab4f27c2f8f8fadffb6d3c74021bd17f071d7b7d
MD5 b413afdebca58204c568f3e1dbdac608
BLAKE2b-256 1a01fe7bd1fb035be7fab5e52fa40256ca69934392c9a368754324670409e272

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.59-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ed07ae519bc1d0c466fda0a7ada4674e3ce2c6191a2be7aedec24ee95f9f4508
MD5 3a2b3debcea67eb7a8bfbd110005d041
BLAKE2b-256 da73e5f9b2b08dda6f46a6c5bec2b5a90269f50c208ca09f669899243217f323

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