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
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
Raw access to all executables from Python using sage.features.latte and sage.features.four_ti_2
The binary wheels published on PyPI include a prebuilt copy of LattE integrale and 4ti2.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file passagemath_latte_4ti2-10.4.58.tar.gz
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0434d66f29ddd00b0af184387067393c1824a8b024e2adafba0e9cf7e2f3d8e7 |
|
MD5 | 7a6cba644071ca8bcd60b1ca31a89732 |
|
BLAKE2b-256 | 35e058cc463994e8843ee1c4374b139e6508b0b9cb3ddb64b36da8e1412c03e7 |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c123074dacc5b7de1fbc31fa2e8cc0d1e2c0a9705627260cbc8cb5d45ada832 |
|
MD5 | b925be1def3fe8a4f003da8c4581591a |
|
BLAKE2b-256 | 6ddc0c2c40a2fd3254c9f31c19d08c2157ba0f7a01926ffb6cade77786113d55 |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp312-cp312-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96721fc190d6467a34c4cc226792015c780c0a41bb9fa8a9ef11d086cbeba454 |
|
MD5 | fc4bde38d44e687ed61b3d54d1c389f0 |
|
BLAKE2b-256 | 90035cdad0b201320bccb7008827ea4b6c029842211294dbbb7abfe68bddc867 |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp312-cp312-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp312-cp312-macosx_13_0_x86_64.whl
- Upload date:
- Size: 9.0 MB
- Tags: CPython 3.12, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f6a39f14e2dcd361bc50da0971867a64bfece0732a53ee78ef915537712e299 |
|
MD5 | ac19988a9c5a1aa5208dd196d5605d7a |
|
BLAKE2b-256 | d3f8a9573b3f1ac366a26931c1b3e19bf33cd2ba569b0c4c6866e67603d9a031 |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cda2c8ec14278739b14ddf1fb0e274d6fc2a30751f0101d021f257de25860432 |
|
MD5 | e975fc2005547cfbae6ee5e8fe60a1f1 |
|
BLAKE2b-256 | f894ecf612868c11c88ff28ef0f67975b4a506c4fed90de2d324e35084625614 |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp311-cp311-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b362547515e0d0552c71aaf0a2da93ab22e3adbd0ec23778370b713cfb30a195 |
|
MD5 | fc9ca874bf8bb485b6eacb7bdfe84e04 |
|
BLAKE2b-256 | b24e275ca3e4aff2f14343490a6b01f643ac4e8b96be402c6be14c0d9931ad81 |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp311-cp311-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp311-cp311-macosx_13_0_x86_64.whl
- Upload date:
- Size: 9.0 MB
- Tags: CPython 3.11, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ccf33ec4a5e775894a4947c6e4b94e7d873371cf3c5ca3909ce454de35a787b |
|
MD5 | 445f60eddff23d4339e58ad8d88400da |
|
BLAKE2b-256 | 404ada3786a2a7b8c80a9a07bfef4a33991d7c9ad8d64a04e5cc38f7c2403108 |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46951c2e9d3cd678f6e14dc6c79778a76d569065b62abcc37bad21679b647f37 |
|
MD5 | 330ecc519c6447a4f2c57938cd4a81e7 |
|
BLAKE2b-256 | 3727d7caeb9ea33b159937143a8718737ad5fffb59c1b59d234229ea2dc68d60 |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp310-cp310-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp310-cp310-macosx_14_0_arm64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.10, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74af45afad429fd8387b4f7672faf354faa8080332d6f96b33931937153182f3 |
|
MD5 | 0c07f43dd043919ef215a388b8661a22 |
|
BLAKE2b-256 | 6e3f5d6cb79cfd1df44547a3c18fbd2c2dfd6ea65adaaa7213c31a61bcb96c87 |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp310-cp310-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp310-cp310-macosx_13_0_x86_64.whl
- Upload date:
- Size: 9.0 MB
- Tags: CPython 3.10, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 328c8087aba4d34524f726836e80308133f2a8eb584726a9361300573c8e8612 |
|
MD5 | beacb078b7613bddbf048119536bfe36 |
|
BLAKE2b-256 | 102531687d572b49edad149151dc401b5410da0432d3c0084cf00230203d4b4f |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5748d473c95686008f10e63c0e32a77928563abb3576db41f46f21165691876b |
|
MD5 | e3caaf1c7b01b8060f08704d1c303a5e |
|
BLAKE2b-256 | 9ecc5c85fec04ec11850314fdd7cb698789f05d5abc364a1518c45c3c1072f51 |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp39-cp39-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp39-cp39-macosx_14_0_arm64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.9, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c194cf73f146f766e469df1cbc012439fafd96b837cc7201a4b39e398fbfeead |
|
MD5 | 7d1c409a2d36ea35da783adc94635965 |
|
BLAKE2b-256 | f2c1e87fcaa6d4fac4e74fba8256da8d97f00259bb7bc7111ec559bd8f9dacde |
File details
Details for the file passagemath_latte_4ti2-10.4.58-cp39-cp39-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.58-cp39-cp39-macosx_13_0_x86_64.whl
- Upload date:
- Size: 9.0 MB
- Tags: CPython 3.9, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aec043d842cd2228e49323d9a766a02af9c5d96d83c759c42cb69c24d33330f |
|
MD5 | 8cd143511a725973ce1e55f7536bd9c6 |
|
BLAKE2b-256 | 6cb8d808ee4f2dcc68b113b43097cab2fe10a46402b872c3d8921cfd0939b712 |