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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_lrslib-10.4.66-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.66-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.66-cp39-cp39-macosx_14_0_arm64.whl (610.6 kB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_lrslib-10.4.66-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.66.tar.gz.

File metadata

  • Download URL: passagemath_lrslib-10.4.66.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.66.tar.gz
Algorithm Hash digest
SHA256 df952281e5b9c70c1617412e0ce017db1297e703252d47a76a4a219eb7c6b03d
MD5 68d9a66e0353aca5a191a8f20527a97b
BLAKE2b-256 1820e37daa641d37cc197442c5765fc35972ceffc22953ccb436a227d90a6a95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cbbf5e4fbc8bdccb54153a93d0f355bf0a6269fc5ded83842ddb17afdc7bc5e2
MD5 99b4ff575233c70310f0408807bdcd9a
BLAKE2b-256 0424a25baad24928e998d650eb8ce0027307ea9224c44017de3dbd3218a161d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 7fe27e645c359625cab04546a90886d36fef0563d0c6856d21e6b674fd4fd95f
MD5 8e244c3cf22dd5454d8d980a2d8925c0
BLAKE2b-256 094ab69df8ab21329a529fd0a7d044dc3ff2ee3198c656e6e78fe691094bf609

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3ba4261b64a1096c319a8959b4736854f471eb7f717a69afd599060c39a3defe
MD5 2a64d61bc37367fd5e2e0515a2df906d
BLAKE2b-256 72e7a3864fbeedadbc6f1c092092d81329ce15c012487305f84b4f22f7fd11ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b88f20a8ea1883cd9860aead646818967e736d81052a3da16e48d3fa4eba4f44
MD5 ad1ef4375f7d5184af048a06b43f0d39
BLAKE2b-256 6c5b63f95ea01f2d50a3b10be54c1bca1c2b4425c2da3cfb7f70b55860d97d8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 27f65196b3972fcd12726b43fbcd81ebb8f3e50a8bfe1d3252dc67f3ad39b065
MD5 932aab9fbb227945ccd6055dc55cd06b
BLAKE2b-256 11a8eb162b61d86fe783f7f090614ed2524a0cd11b2b1a4aa28e1cac95af9d6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 17ae1241e6f688306e4509f550d4f92f27a6ff7de6bd9fe9626daeb7a6dc1a21
MD5 64bbd84e4d83c3cee3f5e13c3c70581c
BLAKE2b-256 01489ed5f973211cb71940b99b3c6addf7a593560a3fc7f0bdab01c5429cb2fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 02e96aad7ae81337851b2d1afe0e664274b8541ae099114e5686690801ea80d4
MD5 f488803e0de4a8964ee10c66121ccb87
BLAKE2b-256 687f1d33d1a2015029a2afbe08be14f308969490d85343230dbfc280d68980f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 04cf6477e8dd5504b78e9a931177c3db1d773bc11d97c91de5ed3f3ac1bd5339
MD5 0e51138cd00f07390c068f6e2f6059cc
BLAKE2b-256 cc645d788fac42e228398f19a3eb3a53c1bf30347e086626abea71b5965bb06f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 de77cbf0501b657bfb04e1736e13b1380607004ebd9dcbdf2a8ca6370e9d201a
MD5 f8381e4eb4e0295c50d49854924a1ff3
BLAKE2b-256 6ee0dc7c96d93cb5e9528a750ce04ac3701b698fc2c090b8b26997ea51de9e50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 97b6f3ea37c10db1a7f68bb043b23a388dc77cbdb44a10e7eda0f5246a1c0108
MD5 1e5536151973527e30ffdf401951d8f4
BLAKE2b-256 0dd5bbd426a9ae108d2518dd65fde957a92df3290c3f63bbcc2efdd8999f3575

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 df9a7ec0c2ee13255a0f0798c5786ea69df07ea1969e937b06b7520fba829318
MD5 2c61e6bfa27157e8568b0a2f0433a70b
BLAKE2b-256 b41b5bd4fcb9f5c735f70a151d783d5cddbd614c264234ffb40228ff58e384aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.66-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 77e7da1188d0a7caf5765b91e703f05cad71255f85597e091f6b7f29edfce57a
MD5 ee90e38105f8f34bef8e2361ae3528b5
BLAKE2b-256 728256e0cf65088d4a13499ea4fe39e9cdef6d9c5aadb4d70a3a7d17dc32afca

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