Skip to main content

passagemath: Lattice points in polyhedra with LattE integrale and 4ti2

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 source distribution passagemath-latte-4ti2 provides an interface to LattE integrale (for the problems of counting lattice points in and integration over convex polytopes) and 4ti2 (for algebraic, geometric and combinatorial problems on linear spaces).

What is included

Examples

Using LattE integrale and 4ti2 programs on the command line:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-latte-4ti2" sage -sh -c 'ppi 5'
...
### This makes 47 PPI up to sign
### Writing data file ppi5.gra and matrix file ppi5.mat done.

Finding the installation location of a LattE integrale or 4ti2 program in Python:

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

In [1]: from sage.features.latte import Latte_count

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

In [3]: from sage.features.four_ti_2 import FourTi2Executable

In [4]: FourTi2Executable('ppi').absolute_filename()
Out[2]: '/Users/mkoeppe/.local/pipx/.cache/2dc147a5e4863b4/lib/python3.11/site-packages/sage_wheels/bin/ppi'

Using the low-level Python interfaces:

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

In [1]: from sage.interfaces.latte import count

In [2]: cdd_Hrep = 'H-representation\nbegin\n 6 4 rational\n 2 -1 0 0\n 2 0 -1 0\n 2 0 0 -1\n 2 1 0 0\n 2 0 0 1\n 2 0 1 0\nend\n'

In [3]: count(cdd_Hrep, cdd=True)
Out[3]: 125

Use with sage.geometry.polyhedron:

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

In [1]: from sage.all__sagemath_polyhedra import *

In [2]: P = Polyhedron(vertices=[[1,0,0], [0,0,1], [-1,1,1], [-1,2,0]])

In [3]: P.volume(measure='induced_lattice', engine='latte')
Out[3]: 3

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_latte_4ti2-10.4.56.tar.gz (11.8 kB view details)

Uploaded Source

Built Distributions

passagemath_latte_4ti2-10.4.56-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

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

passagemath_latte_4ti2-10.4.56-cp312-cp312-macosx_14_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_latte_4ti2-10.4.56-cp312-cp312-macosx_13_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

passagemath_latte_4ti2-10.4.56-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

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

passagemath_latte_4ti2-10.4.56-cp311-cp311-macosx_14_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_latte_4ti2-10.4.56-cp311-cp311-macosx_13_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

passagemath_latte_4ti2-10.4.56-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

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

passagemath_latte_4ti2-10.4.56-cp310-cp310-macosx_14_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_latte_4ti2-10.4.56-cp310-cp310-macosx_13_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_latte_4ti2-10.4.56-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

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

passagemath_latte_4ti2-10.4.56-cp39-cp39-macosx_14_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_latte_4ti2-10.4.56-cp39-cp39-macosx_13_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

Details for the file passagemath_latte_4ti2-10.4.56.tar.gz.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.56.tar.gz
Algorithm Hash digest
SHA256 aeb7fdea790101265a9f9661f86165ac82c4afa577db2ba4c3f4d81119685bbd
MD5 fa80ab0e264dc3318d6d88ca44efd8b8
BLAKE2b-256 17cb398239e39d8b0572f581e8911d187e3c4215ba3870f6391d153e86da82e4

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-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_latte_4ti2-10.4.56-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dc036733307adcff3d60764fb233fbbdcad0d6733d75a54dd5f88604a8658a45
MD5 c68c31c0ff3b282ca89c748c248869bc
BLAKE2b-256 a1ca4af8e4f5c5f8f20e74ac5a9ec73fed4578a7ab4db080d25a77853c7cc9e6

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.56-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ddf5ca54731ca010699d6fcfbee919a46208171e1d1de5d1e21be1695950d6f4
MD5 4ce7bbbc920c4c9fbc3daf3902367bf1
BLAKE2b-256 3b218549f666bbe54b200806168b0c0cb9ca4a78454dff8c15406e3605cc00be

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.56-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4e99f567e9d32c75d843fe3e53b1d31ab6e20fd04446ad9870af315a13af5677
MD5 6b9f0f7280533a14bc47cc6439933e2c
BLAKE2b-256 a3e18777c06e26423b67104b2c1f74c7e646da8c5a69a122dba823c0d7300106

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-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_latte_4ti2-10.4.56-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ae6f8c51091075090b64d890a565f5bd7e576d0a9ea4f470d88226c8b699c946
MD5 0ccb29bc7554f1054e8dcc5aec1ff201
BLAKE2b-256 edf760e465b7a14da855d2cae92ff968a49ec5e83906c2b3ee3c89b7240e0b01

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.56-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4e1ecf182d60b5553d281e58387af31cac1756ae042b17f9aa5fdb295077f6a8
MD5 8b274b3cba1b85d7f73d3fd15b9e80b2
BLAKE2b-256 10891d6f010acb69dce89486b051d209fb37f8ad78a7d6e7d4864a169d2cc1c6

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.56-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3f36a894e02196e41641f227025097bc929bc478a8c90bd81dfe6250ab0bc83f
MD5 1d4ba773e7eab8cac9b7ac6eab0e9973
BLAKE2b-256 da29da71420d243d0f8eeea21b2648791756854d5950a3f5827137bd74144c52

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-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_latte_4ti2-10.4.56-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 118d682d1b20782b77fcb72314688308675aab43aaa2a7e968aa8aa8f50886ab
MD5 3fe03ad3afa1cc5d72798441d284e536
BLAKE2b-256 182de70585e0bda6cd696f0bef83bae08ea29394e42dc076c1c5ae70bc895ba9

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.56-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0a4746cab28f6b704178c6a6f4e60734f26fd0675eeeb3687cfeb961b7b73773
MD5 e7469cc0a1283587c4df5ab2b00a95b2
BLAKE2b-256 79d88bd067c0a00b32030e74bb2eb8a48af8ba604776d8a560c167dfa66adc3c

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.56-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a96e6f57d8a9eeec85f34cf781811a096d86ffe654599e44f1ea67dbc61e16b4
MD5 757db282fbc71f19cffb863748625fc8
BLAKE2b-256 3eb8c37cf3a09044934f09d468646293b921ddc6b0d4496dffc9c505ae721d34

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-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_latte_4ti2-10.4.56-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d56edc061824606d1cbd9e3274d270be82d793e1dd5f3e6b779b9c6aa8aa07d2
MD5 e1f37dce364183d49ec06871af379438
BLAKE2b-256 5c19c15c2dd2e506c8bdb536a854d59de3e97d4b24b866eafb9feb2a1de81bd1

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.56-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d7292c9e5f5e5367ccd6e85c6dc52e746c4c35d5705af4c5a36176135526b2a1
MD5 a845976d278fd0fe04db08e98f88e607
BLAKE2b-256 7d52ba16ac2f572df4fb594eb9b2547eac50582b569786af652abc561aa525d2

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.56-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.56-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2f470534f8a5fcea5f5fc28a9c17af2ca505738c412bca48040ba5afd43c51a3
MD5 1facf99369ad790e436bac17a7bbea97
BLAKE2b-256 fe1eb84d223a7d66ecdaaecb249a7e2ee7aaa511139fdf9cc1d8ee5c562edda1

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