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

Uploaded Source

Built Distributions

passagemath_latte_4ti2-10.4.59-cp312-cp312-musllinux_1_2_x86_64.whl (39.3 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.4.59-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.59-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.59-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.59-cp311-cp311-musllinux_1_2_x86_64.whl (39.3 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.4.59-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.59-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.59-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.59-cp310-cp310-musllinux_1_2_x86_64.whl (38.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.4.59-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.59-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.59-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.59-cp39-cp39-musllinux_1_2_x86_64.whl (38.1 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59.tar.gz
Algorithm Hash digest
SHA256 8115c4147caa1cdc2c964621ed84d6e92574053c56cb287741acfb9dfc18a580
MD5 b80063974c22e2cc8d87df98063ce283
BLAKE2b-256 299e68371ca87ec6bb037789b121e274fdf7c25df7707aaa60e313930bb5d809

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 635b7a466e3a55ee846a9d6d726046a100182fef5c86278ba40fb320d55964e2
MD5 764bfece497687db4a35081c032d27d3
BLAKE2b-256 b96d1f6e60043d50e0dd6601035c45dc070ea784784143c40273469d4b60cfd0

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-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_latte_4ti2-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 ebe5dce354b4b471832f322188d58330fa081342b64f39553664d4fafc75c031
MD5 a4202b29b86e328de00f8ee8cb11cea2
BLAKE2b-256 5e3554e0a5af5106fe8fba349665d9716c575e97e09eace3e8c14b25859b8725

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a1ebfdb4c3ce51e8f3858a4c41e7d093a251195c04c11f7622f49d1a7013063f
MD5 3ada22f8e0f593f8f6340b2503cd6c50
BLAKE2b-256 cf8d8cf4329835a7fdc8d3dc196b866459db2afc7aa9c2626caac79bbb11fa51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 64828b3b642e2216b306acf6bb8a31932949267dacb5bb56ca0f23d5899abca7
MD5 372e852a3dadacd297d66cbd14572cac
BLAKE2b-256 80f079b080df3281d2b978f4480fb69db9140bcc902d22a8992b871e27ac825a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 81154be0214523e4df3a67f40f686939bb7fb410ebc1a26def106d8cc0152466
MD5 bc460a37f7354ebbc3a842fa376d36c1
BLAKE2b-256 5273eb2fa3ed16756da1cd795d635bf7aec7db2cda1de4b858daf3e76cc6ed79

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-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_latte_4ti2-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 6ceca6c8c7562a1cc3844c24102983f7603fb09e7d51e6cd51a7f75dddf018c0
MD5 88c3853cd0e5ca80ec5997bc7b71cabb
BLAKE2b-256 829b1f3f4ca257d7b8bb6d4bf74d8b7f9f159e8b682074300b8d7a972b75fd34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 54f4741eb8a773a597e9b30ddb461fbb36011f3cfd3ef63ce67fa9c07c514373
MD5 d6952b6e01e8d053654aead7faa8d11a
BLAKE2b-256 eee3b908f24e09730702e8b088d13a50848ffe71c989b0432f2b6018f936b870

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ef21c0c9e0ff15ccd96b47cb3e74a8e9624264b221ea55984f535cd7d36ac143
MD5 350bf4afe5d34c49bbd9ccf6e2aa3576
BLAKE2b-256 7cf80dd862e3ef220cd8822070743c6b20b574303b8901f3e2d6d551daa11d7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c148851fa0e865373989170429d7128c54b82e4da3720b5bcfa8a32b4945fe44
MD5 c63396ae197d13567476a5fbd590f96f
BLAKE2b-256 d31b93d17e4884e68a0aab072e07db6b08f412ed8995866344972016b2f1d743

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-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_latte_4ti2-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 0cab2b603bc2762915001049016713a822243950098c545025e282733d84157e
MD5 d3f582cb39a30fd82578b3d8713bf04a
BLAKE2b-256 0d05487f917e571c06d888ebf98bb340cce33471d71f8456741ed87b73ab0f03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 76f18275fbc2b428118d778b6877f0c9d091ed8f7f62a7d7ed3098820c32a578
MD5 2c3b6341e60052e4bbcec57b0f3a0835
BLAKE2b-256 e77c866e616344cdee814117e9e8489add6dee8e7f6c1e2040802d2cab6c8720

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3d334984973eb0a2dcfe87ef902a8b558746e791a2354336bcfa7fea921c5b17
MD5 55204010e7552771c7b748e19508584b
BLAKE2b-256 aaa3735f9758dc977f1a71a2e97e060c72c2a1964dd813f25b3f3c3e9526ca2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b6f73d66537b970e8ba668ffea99007cd5380a05f89c74d99599b6bf728c4eb2
MD5 828c5397ed5e2c13a03ab3c78492270e
BLAKE2b-256 ccd5d624e9407384785e17345c7c0e952465c4307c72ac9b5d7dc34bce1dc594

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-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_latte_4ti2-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 957919cd7807452ee7f433a9b18bd7ee02d01a88c655120e9608d15124a4dc54
MD5 0e50ae012557f2a7452c0c6d3dee8d5c
BLAKE2b-256 3012155b4eadd78305f75114a41d79c2fc6a2ed365b8d30a431d8c66168a4e7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 570b2d9dbf1c2bb2d34a287d2111acdbd7c3acbccf4a874036fc9aefca713ca6
MD5 0d51bed647891ed11f4dce3fb7d07296
BLAKE2b-256 839a00458e9eaf23408705896128297248099d1a77fe98b99320eab4b4769694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.59-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 935f6fbdc143df6c111c3658e60cf26f5c6c0d625fd8a10c843d94c7c9253570
MD5 69b672906f2f9fe0e06ad1768b766aee
BLAKE2b-256 949d9c0ecdf3c7d777e587283ece8e8220fa11926f2943c1071c15afc8f4c1f9

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