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

Uploaded Source

Built Distributions

passagemath_latte_4ti2-10.4.57-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.57-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.57-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.57-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.57-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.57-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.57-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.57-cp39-cp39-macosx_14_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.57.tar.gz
Algorithm Hash digest
SHA256 421aebde96acfa5a32208bc8e6692822f360ea1d305de9697154b5fd5c9520fd
MD5 0ea9a54577eb11254aaf94a2be44ed29
BLAKE2b-256 75167ec14f70963e19f42a61f8c5b7c5ffb2d5a6c49f5c171b00f0e165d1af43

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.57-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.57-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d228862062a54919e6357b6482c0894664a5253f6bebd8ac6f2f27856fe06cfb
MD5 6059addc147b64a86976cb821b8fd441
BLAKE2b-256 8c436a0a35e93a6dabcf54a796784595b301c1167a009de7c73af4263ecd220c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.57-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 03abdc94103f7bbc8d5ade4b8ad1868c24c8983e1b34563d0747bf733053c475
MD5 8793b91445065093992c25ba429db279
BLAKE2b-256 a5a6e2c77b4fbddfd30ccc892dcac934c236dae61e8229fa1639f04ff2572422

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.57-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.57-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cd97019f40d8a574f04ee0945a424a86d4f14b0b3cc293d266b31299bb6a1f85
MD5 08ffd24acc512cf3cf58a53ede004791
BLAKE2b-256 00ffdf8bdf529457d40d503fe8a38130c36432e9efa7c4c8e646a2c31aa10204

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.57-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 83e9a1c345b8f5464253de9c9aef145fb763f7c0349b4e885d085904626dff02
MD5 fed51ba210b7ef5fb07fdf04e8923318
BLAKE2b-256 086e1607b8ef68de3582ad047189f21745228da7dd0cf045901f03b68dfa2204

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.57-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.57-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1f5ff257e21377e9ecd4ebf591c782ba526c388a79ce787a0441a2dff58ed6a5
MD5 c16b644005c78b70d30f82e83413eadc
BLAKE2b-256 d5c249da6ba37e9e95b6bf0a8f9cda826b7bad46e148074eb8778d8b791025c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.57-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f95c0691f16c39c53d61172903e24088fd0f8c6a230934d22bea7301ca8305fc
MD5 6feedd3458917374ce94782d97574bc8
BLAKE2b-256 8059637f9b2ec706635ebf58ee8c7f59a3e0dd2c0b9a79da62c3d46228a0e851

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.57-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.57-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3da31e5ee3d65c25cc4f65dbe29021b8e53341a23fda8bcd03ac31596b46d7f8
MD5 4396cd3585f072ea46d49c8c614bd3fe
BLAKE2b-256 6eec37761cc00b1267e9bbf3b1ea34cd52b1f80ee287edab7cf1797518125877

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.57-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 72fbf2cb0ef1632919b2a80d5e4443180ca14d4aeb4c642387827cf1f27dc8b1
MD5 f180ab82ea306bd2de5dfa99c7c82786
BLAKE2b-256 790e4c7a2d42dd8fe305bda2e809c1af34d1fd038a52d927de45dd7f5fb1d323

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