Skip to main content

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

Project description

passagemath is open source mathematical software in Python, released under the GNU General Public Licence GPLv2+.

It is a fork of SageMath, which has been developed 2005-2025 under the motto “Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, and MATLAB”.

The passagemath fork was created in October 2024 with the following goals:

Full documentation is available online.

passagemath attempts to support all major Linux distributions and recent versions of macOS. Use on Windows currently requires the use of Windows Subsystem for Linux or virtualization.

Complete sets of binary wheels are provided on PyPI for Python versions 3.9.x-3.12.x. Python 3.13.x is also supported, but some third-party packages are still missing wheels, so compilation from source is triggered for those.

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

Uploaded Source

Built Distributions

passagemath_latte_4ti2-10.5.44-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (64.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

passagemath_latte_4ti2-10.5.44-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (62.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

passagemath_latte_4ti2-10.5.44-cp313-cp313-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

passagemath_latte_4ti2-10.5.44-cp313-cp313-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

passagemath_latte_4ti2-10.5.44-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (64.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

passagemath_latte_4ti2-10.5.44-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (62.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

passagemath_latte_4ti2-10.5.44-cp312-cp312-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

passagemath_latte_4ti2-10.5.44-cp312-cp312-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

passagemath_latte_4ti2-10.5.44-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (64.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

passagemath_latte_4ti2-10.5.44-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (62.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

passagemath_latte_4ti2-10.5.44-cp311-cp311-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

passagemath_latte_4ti2-10.5.44-cp311-cp311-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

passagemath_latte_4ti2-10.5.44-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (64.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

passagemath_latte_4ti2-10.5.44-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (62.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

passagemath_latte_4ti2-10.5.44-cp310-cp310-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

passagemath_latte_4ti2-10.5.44-cp310-cp310-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

passagemath_latte_4ti2-10.5.44-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (64.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

passagemath_latte_4ti2-10.5.44-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (62.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

passagemath_latte_4ti2-10.5.44-cp39-cp39-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

passagemath_latte_4ti2-10.5.44-cp39-cp39-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9macOS 13.0+ x86-64

File details

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

File metadata

  • Download URL: passagemath_latte_4ti2-10.5.44.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for passagemath_latte_4ti2-10.5.44.tar.gz
Algorithm Hash digest
SHA256 497c50b6cadfe210d94849fda0e21fbca7a6d064a9336152126a2613ecedbc47
MD5 f3e9709588ff8bc464fe2b16f8b1df09
BLAKE2b-256 cd9a650ba19cd63c1bae63b83dfe32e3b4a1c758dffdb73df65e90de46a22784

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 91281b38e646f23a2a741ed75a9f70ed53d09d6fa85146ece93b00313920c843
MD5 606cbff56af225a283bac74fa777d4b7
BLAKE2b-256 c31563115e829d66a2ec670e0bf45365822488a713ea267bf371be8b833b7793

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f270eb40fdf9ff4babba834eaeef1e8761c68cb7a2d9cbf38047954620d44ea9
MD5 1f1acc440e89ad140bcadc8fd7f9956b
BLAKE2b-256 921e65014367008f43f83b8fe59d3f6406563ed74987a7bd324d5e3a1bab1d5f

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 73ee17b343666e9b9d16058126dd3152c7d9c55a69f80212f41a78f2906b093c
MD5 fc238c290d8b8286c81a01d12c0b3a88
BLAKE2b-256 02c2cb99941ff5c6336372ceddc151299b4c4fcf765cedab4ed4a420936effd8

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6dbe8a8df9c6ff091048dba1753e57d435a15df2ed0473f4d4b4cc20082b72dd
MD5 b5ae7a69a13906484c5409a971b01723
BLAKE2b-256 ce1646aa0545691bb3b9cf1a98f7585e7bfff35b6c5fd6f75fc75904c43f5a50

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 71c8cc1cf5832da06fdc34d4cee3f641ddffb5edec76df28cd207dc67ac4960b
MD5 01c54123e221c5335bd691afcd3a73e3
BLAKE2b-256 d2793d26921284e45f114e234d93acae86e0f5d886e008e0cf5ab48d1ab45f23

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6f29cacf0f730c555b00ff4a671ae5f39233d55d06553173745f084490ae7e50
MD5 f31648356f53a9eccacac02810ecaafd
BLAKE2b-256 992f53777793898398074922a4041d5a714d798c8dcb916b6da493c5b7c9d424

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4d77c9cebe1640e2bb5f63ec1fbabe08ef87c825dbbad4c982e04583f63b41f8
MD5 8bb6f4d58138e71dc342c415501ff347
BLAKE2b-256 f6700a31025234ce5d5ee0cfb3138a68a6479f65e031be667ee23eb73333a69a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e627abe94b888cf2f6feb9b57479d455f2a30ac5c8b108b01a0a3538f6fc4913
MD5 9cdfc9acaaf23b12942a10b9e5b75a21
BLAKE2b-256 7d6255662f848a41b899470bc5851010d6b123a1fa24a3dbd03090f256d56389

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ea0634c67ad5b62dda955cdda30c01660e44ef84967a1b513793f35a64dd9b7c
MD5 5f2801602c95ee28911c8b23e0ea99e3
BLAKE2b-256 5a8f84e9e080f4502b240ad152fe8823ea1cb75ce6ca3fdbef29f5a9d200c0a2

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7b520e36200c4fea031e75ba557c99b068b30cf7ab2518bc7d4672a4697725c1
MD5 4fcac68e74176ac423c1e781923c663d
BLAKE2b-256 6e94bc9896c5e4a3e46e0a1f9d4edaa929e9ad889b284689eeec0f42dbd084d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 83b5376f80de890071b94847534e35e43e1ac3a40090fe3ccdca76b687e1e777
MD5 3de37482e4804f89c8a176813a4bc21f
BLAKE2b-256 4a55dc584235d3253b05c714a281cc42c7cee6b7cd04486e637538e665e24df7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c7c0c9d72b3ee162aef5f29c3c82233a558eb0b66c675b6729ad9d7c09da73c1
MD5 75e937840439c983883c1a5d65505ebc
BLAKE2b-256 f940c0a96023481740028ff2487dcb591ec093bc7e9e33685c2713d7c7391fbe

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9011c5906649a748b9fe70d99525cd807a4a572869ca8048635ba171e8d8bc5d
MD5 7e5cab3302f3165b991c2be6ea1d0f5d
BLAKE2b-256 0ce1e65b32ddffa974163b8c77d00436dde5167b4d933c768afce8e18d8a193d

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 82534448a47cf4a5f35339491f8a6f93ff698d4272bf1d55ab1dcc5e3ab443f2
MD5 347f4183178435c45b1a93932cc4b6ae
BLAKE2b-256 f65eeb34f787555922e2d98162262e8ac23dc0cb2815bbc7ebeeb1c148fccedd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 15fa0fa03938ba5d5af3624898b777716a92c94e76d9b3c61c476ea1e764a842
MD5 f0c244afe88b196a805c2227968e6689
BLAKE2b-256 fe4c95644b499a1ed87acbe130549c7875ca69451ada37556c03e2dbfdadef15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 32ed5d5ef55b4f2eac4289d1077b399f4edb6914ec0d8303a6ac0ebfb965d495
MD5 e78054c4efea1def916f0957ffd39f80
BLAKE2b-256 8886cce4a6c7965dedf0013fa36bc8a572ddd36e094829be8a64ef1549a7c320

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd02903eef6aa31815a4477f266194d7b39571ec5fcfa20cad7a20e73560a841
MD5 28757a53f88b4aabf125cada8c6190aa
BLAKE2b-256 8c6e924a1ab565cf1ca5669fa04534d42a435d72b75b473c551c9460a3e74f30

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.5.44-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 215a096fdb0759cd2fbbfecab0e333269cab74dce27613a20aaa02a690922559
MD5 b9e97fa002361d28d38676f4d7fc26a1
BLAKE2b-256 25be3b96a252e1c23a60091bf9cd2854b74e4d56a2ebf41433bfeecb9bbbf4e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 054d6f04a3e0da0031136497923ec41acc854e65b6eebb566ba8eba8c7c08387
MD5 78939cde2c7c3b0838aefb293ce28aa0
BLAKE2b-256 6d485d14f0840cb297f90df775c4b91827216cf410b0c7bcb8f72e82a49817e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.5.44-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b5bab6d1f83ecac8d87f1ee12bb77470206b747edbae01f332b3ddc8738d4125
MD5 6e9cdeb14284d80743f3b98c2c51e776
BLAKE2b-256 87686476fe6fc0ef362d6fd1a46759d080f89f25bc76f3c14f3da91e37957d86

See more details on using hashes here.

Supported by

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