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-2026 under the motto “Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, and MATLAB”.

The passagemath fork uses the motto “Creating a Free Passage Between the Scientific Python Ecosystem and Mathematical Software Communities.” It was created in October 2024 with the following goals:

Moreover, the passagemath project:

  • provides a stable, frequently updated version of the Sage distribution,

  • integrates additional mathematical software, notably Macaulay2, a full set of GAP packages, and the Combinatorial Matrix Recognition library,

  • curates a library of Sage user packages.

Full documentation is available online.

passagemath attempts to support and provides binary wheels suitable for all major Linux distributions and recent versions of macOS.

Binary wheels for native Windows (x86_64, ARM) are are available for a subset of the passagemath distributions. Use of the full functionality of passagemath on Windows currently requires the use of Windows Subsystem for Linux (WSL) or virtualization.

The supported Python versions in the passagemath-10.8.x series are 3.11.x-3.14.x; the passagemath-10.6.x series (EOL 2026-10) still supports Python 3.10.x.

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 passagemath_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.8.3rc0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-musllinux_1_2_x86_64.whl (62.9 MB view details)

Uploaded CPython 3.14tmusllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-musllinux_1_2_aarch64.whl (61.0 MB view details)

Uploaded CPython 3.14tmusllinux: musl 1.2+ ARM64

passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (64.7 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (63.1 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-macosx_13_0_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.14tmacOS 13.0+ x86-64

passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-macosx_13_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.14tmacOS 13.0+ ARM64

passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-musllinux_1_2_x86_64.whl (62.9 MB view details)

Uploaded CPython 3.12+musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-musllinux_1_2_aarch64.whl (61.0 MB view details)

Uploaded CPython 3.12+musllinux: musl 1.2+ ARM64

passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (64.7 MB view details)

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

passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (63.1 MB view details)

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

passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-macosx_13_0_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.12+macOS 13.0+ x86-64

passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-macosx_13_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-musllinux_1_2_x86_64.whl (62.9 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-musllinux_1_2_aarch64.whl (61.0 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (64.7 MB view details)

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

passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (63.1 MB view details)

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

passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-macosx_13_0_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-macosx_13_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0.tar.gz.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0.tar.gz
Algorithm Hash digest
SHA256 d5a7bcb3b8d26fde487c6060189d982706249b5c8cfa16099a57703f99af4b5d
MD5 1e0fa0ca73cdd06ab92fedc5ae274e7d
BLAKE2b-256 e516cc76673b24800eaa2d016267325c07af823eef68ed824a9471c5e2a4c305

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fdcf14da87157cb32fe954e9f16af9973470944aebed16ed27f94b2f55cdcd61
MD5 f26f1e449eeb859cc1c259a39d473025
BLAKE2b-256 ad275c2cdce2f8568490ef83740032a32ce4178104a0de02d4c3def692d2cd86

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 39c374b5512cceebfc9fdd221b2363f6311367c4a81a018bec40c5bdc153e0cf
MD5 5d65431214270444d3b31c7ca88f42f7
BLAKE2b-256 2802300881959caea1a9107f7fe95cf99a738c1545b55df234464e6d9322c1be

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd11546a78c80a95796928dddfc0f2a36a5d1043aa390453b449e8d9b862dbb9
MD5 b9865475989032a4c230648e564e01ae
BLAKE2b-256 c249c1bc143f2dc8d9128391199b136694dee603d2e9e4861cbf37cd92621369

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4e38ebd1bb1c3715fbc93a7947d991a1999c28d1a3f44331c66e48acb53c1a4d
MD5 015706bdf764db1e76aa4e0cf5df2c48
BLAKE2b-256 da56301784bd99536e50908c53677006c7da5a56d1d0339801bb98f06b80f7ee

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 427d39587471fbeca719e2ebe22897161c0b493619494d464f931130501e5e0f
MD5 967d4ce1d7233968a6f345c2e7e6e210
BLAKE2b-256 d83f67370516e447027a2de4092e04d3a34fd2de83a6bdec9d224d8cf90ecb03

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp314-cp314t-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e55b8fa5775ad8a7e668a7ab500e3126f64a527678de561686300ba884d82bf4
MD5 fd05279f6ece0df7cebe4db5fbb6eb17
BLAKE2b-256 b84714e3a69618b76867b6f5249a3a7a48c4c2831919082df6c280633d6a206d

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7101a7d0f72ff893bb8fe16481015bb24cf37e6ace7d8c6850219bca048855b2
MD5 17dd7c9ccfd7fb1f1462f6edf62db809
BLAKE2b-256 30d9df2d8d4625614de20b1bec5a7a4bd9fabe4366940112ace82950e32acdf8

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a7d29b74ccd4dc2526405d150237844ed72202a8936b12393bebf11c056c0a2a
MD5 f1a3beee30813d8277fa2da425ef705f
BLAKE2b-256 15e6ae63a42adec939765256c6f6f6feeb26830943875ea49f9a3660e72fa4ef

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bba529e9bdb12c23fa4744680a8aed4e47bfc6625e7d8d703391618f177302ce
MD5 2308bf008c68baa2d9394355c80c1cf0
BLAKE2b-256 4193b5f5a55f602347b5f142f1aa6a24905e90807ffc9da48cb13799fb27eb24

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9e09d036bfe8ad358ed2877a2c68bdafd5c432fd5418278e28ceffade6b89499
MD5 6615d7daba47d55701466920c58c387a
BLAKE2b-256 a24629a9d71bdf007b95044570be976905536b1e30a364584fde5d2fff2d3e0f

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d1f2f25d2b0f151c8bdaf5365279494589b07d78e6fccc79fa1802efbcf73ec9
MD5 2252cbe31cc52917d8a28706b9a9527f
BLAKE2b-256 e63e94aa6371ccd8a0cdc220b2896228b6e8b54067e575d33520d16f67d72b58

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0d8f80d9fd80592a59d2c9e83ef70e09b96c34fa055510c01c2a7a2700b6d06e
MD5 871c39eb71706c5f62d472d0e3088ab4
BLAKE2b-256 eed9b75e6c4a9984f40b524b89afb85f171043fbe37f93b2f0bdd2078325abea

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 738a0717c49a434f46bded7970a0ff675ea4c213aa2017f2af8da800736375ed
MD5 bb1eed712b30aef79745e890010cea1a
BLAKE2b-256 aa2525e2b3453ada0bdc63e8cb744fbf0065df2cb73333affa4b9d5816e8bc94

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a064adafbf3eedc71f8b8585a71bd2c3c5a7227045a0ccd1c45fd5e7d2e920b5
MD5 7e952dbd270d191b3d94cd056eb49a49
BLAKE2b-256 cf44d513098ca94f0f71b443e821a13ec7ac7dc933ae12071a33c72b635f1a99

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 39921a27b9524c97a10e5798b44af1d567966505efb42b1d97378936482aa22a
MD5 49621e79f3cc1d7ad7a5d11bc90a3b81
BLAKE2b-256 65b8a9498dd43627ceca3942bd4461c7793d1c3a9ee797ac7e846bdfc8115232

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 928ababf3ae00f9e0e2135c7fc37a33fef7b1a07d5a9ec10cf1862283326d3da
MD5 4242553deea58e0a918f6f27c0463a97
BLAKE2b-256 69c90026f3d2a8650ea533908baf1b0b806c1f7d8e64b95700eb99a188fa5703

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 13089cc1cce90d064fd793700fa1fecbed176d15d8ffbd67b9dcd495411871ba
MD5 cf9dca430d6f8413ae1a9c0d74346472
BLAKE2b-256 b0d7febe32eab3121f1e293a0ceef9a16e9d5e08d6c163a2947816e75ca86b4a

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b73ea99c40869162a631186e3d3b93d289e2b030642e3851a0b4b0b86dd13f3a
MD5 22ef400d141c601c68505e7b3d7abacc
BLAKE2b-256 c9bc708145559bf57a397395794289d7d0919a584f3ab5d7e904b21fc75f95f2

See more details on using hashes here.

Supported by

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