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.60.tar.gz
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60.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 | 91ec64fbf689855dcc34f6c9385c7d31594d2b3a1b41347bab174467f16c0136 |
|
MD5 | e161f885425a593e7d6b2ca7e8aedd60 |
|
BLAKE2b-256 | 4c45c3ed528bc800e12e9aeeba120557041955eaa6a7752a50b0497ca03b213e |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp312-cp312-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 39.3 kB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67771804893a9ecd3c64755983e5451b49a8a9c28cad1cef50d3371dd401fb59 |
|
MD5 | 138d42dc0a83eb63b36c4937198d330b |
|
BLAKE2b-256 | 66f47cda09e171bbaf16f9a314f24f1841643108e43041af2bdb65152ee3dd66 |
File details
Details for the file passagemath_latte_4ti2-10.4.60-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.60-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 | 593cdef225815eed76ad8fa5db1ef507e85b7b0abcd82f3721f0165779e16484 |
|
MD5 | 3967fd387859512a161994b582369656 |
|
BLAKE2b-256 | ff94089f0c73b13b20159482e4ea800ad557733d19f1e387e59b041dbb6e57e3 |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp312-cp312-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-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 | 801d9cdf6b6166aa504e0dc883ebdd94dc755aa87c80ef43ad5501fa77eb52c7 |
|
MD5 | 528723fa85d94bc9a1a105aae0c0dd88 |
|
BLAKE2b-256 | 0dae3d7cda3ac172f772976ee37aa601b1bfd5660f78409a7a6ec9f33929c452 |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp312-cp312-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-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 | 3da48a84dc8a08eefcc6a0510277726c329cb9a9877997dd64ff00a02930a63c |
|
MD5 | e4134fb6cc5c5586133403f2753d5e18 |
|
BLAKE2b-256 | 598a07d4f628131406b8a3875bdb849a70a4f2b241ebba24a202579c111234c0 |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp311-cp311-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 39.3 kB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f6e42a8b7987386f3a487e410df623fa2dc123ef078dd69ac31d34dcccb98fc |
|
MD5 | 1272b6d659fec09e17927f3c1a6a110f |
|
BLAKE2b-256 | 2da42f40c1feb8109ec8c77ced28c6f45f63e057a61bcfe87c1346637e9b3861 |
File details
Details for the file passagemath_latte_4ti2-10.4.60-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.60-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 | 5fcb9c8872b8af0d0ea629bbc493b2ca3337f43df9432962499f05c49fbd9a47 |
|
MD5 | 44e738e567aa44ce3ea0796b9f22d0e1 |
|
BLAKE2b-256 | a092e40b7a12cf04400db19f044aa74aa90c036454e70eec18527d1fe611f07f |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp311-cp311-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-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 | c76811dd181282b555a61806002219136f6940b1b74b12fa142ef579adcd8ee2 |
|
MD5 | ce2051c62618702672a4e319e81f0a56 |
|
BLAKE2b-256 | bd3342630f39738279150ecace052256027d2fe5227d6f11cd80b99a5cbb52bb |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp311-cp311-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-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 | daf33dc65bd4d25427c9e9ac3d204111efca7a99c7ef5fcb0a1e69fac835b302 |
|
MD5 | d400fee4a3b9f8886475ed69db9ee14d |
|
BLAKE2b-256 | 9c1bd8d62ecb05f7044a87904888eaeaca3507f6d92df79ad52c11037f32cd7c |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp310-cp310-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 38.4 kB
- Tags: CPython 3.10, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce348a2626dd31da8eab68252e5c76554f9a1821be79725d14cc39b3e53a693b |
|
MD5 | e4b80c3a93b3241376979a24ca2a51a5 |
|
BLAKE2b-256 | 888dab9c2e0849851d51f617fe0b91a931578a530b9a0ee982ab3d92ed7d23dd |
File details
Details for the file passagemath_latte_4ti2-10.4.60-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.60-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 | e2cec1c57031a412a8243c8500c0784072eeaac9ebae3adafb7d05b2b763dd0d |
|
MD5 | 6ce90b8a11d372c8d87766451a06c25c |
|
BLAKE2b-256 | c1c06ac4f3d752b1461ba3ad95182b4835505b775df8be5767fd07d33b77606c |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp310-cp310-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-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 | 8ad7a495b91eba376a0b0e6c753d6a6bf52bedc3e5d32a1bcb8887f930c845a1 |
|
MD5 | 2fae1c6c5e70ea0da7c4c687579026fc |
|
BLAKE2b-256 | 5205863b74228a25ddfb9da15615da94422c2ae70ba3b50219966c0ac9c3e7d4 |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp310-cp310-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-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 | 84090661331f5aa43a15fc3c6bea35c2009c6fc3e628c6b0448c00584896e452 |
|
MD5 | b98a9c96cd7d64ee08393a068f539b3d |
|
BLAKE2b-256 | 8039080d9ccacd021661922eef5b4f37a5de73217f1e86f11599c319f585c22a |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp39-cp39-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-cp39-cp39-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 38.1 kB
- Tags: CPython 3.9, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ea7b3065e5d4a9f12807bdde5a602b218ae979fc172b2901f6fb94a1c126d8b |
|
MD5 | cd123fbc174264e45aeeffd6af618b72 |
|
BLAKE2b-256 | ac2e9df22ce805c54a07a4a51b41213a226656e9598f1d24397df96095e1e2bc |
File details
Details for the file passagemath_latte_4ti2-10.4.60-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.60-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 | 3728154c12f5c8c60f4409fbc95d116dd2f380639b183330457606cd0d5c153b |
|
MD5 | fa5860cee0950508222bc15d0447c95f |
|
BLAKE2b-256 | ddc7e3553dba9f9e9e649b575072d43f9f1c96b7c179f7f7c5341b7e4e26a808 |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp39-cp39-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-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 | 6e0cd267830b3da1e22d668a24e8e87cab7c07e5bdf4ec2414bc91a02483f7ad |
|
MD5 | 8b2505a3b6e34778e2eae20e8be4c02a |
|
BLAKE2b-256 | ce723383a9b9cd496fa6b69816bf33b81d25851797de77b37d74cc64671921fb |
File details
Details for the file passagemath_latte_4ti2-10.4.60-cp39-cp39-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_latte_4ti2-10.4.60-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 | 7fa267a98a67b48fcc1214f9836166c3c56c66285a2437e346b8e36fb0ba1993 |
|
MD5 | 53c8348f31833185f76d2a1aed90b6c7 |
|
BLAKE2b-256 | 6ed00637edcd119b54a66d3640a80aafe505425a0a035fdb07d9e8fca32bdc23 |