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

Uploaded Source

Built Distributions

passagemath_latte_4ti2-10.4.63-cp312-cp312-musllinux_1_2_x86_64.whl (39.3 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.4.63-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.63-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.63-cp312-cp312-macosx_13_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

passagemath_latte_4ti2-10.4.63-cp311-cp311-musllinux_1_2_x86_64.whl (39.3 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.4.63-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.63-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.63-cp311-cp311-macosx_13_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

passagemath_latte_4ti2-10.4.63-cp310-cp310-musllinux_1_2_x86_64.whl (38.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.4.63-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.63-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.63-cp310-cp310-macosx_13_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_latte_4ti2-10.4.63-cp39-cp39-musllinux_1_2_x86_64.whl (38.1 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_latte_4ti2-10.4.63-cp39-cp39-macosx_13_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63.tar.gz
Algorithm Hash digest
SHA256 2c93dac22aadccfdef02de7f86572ff58b56b87b67448458e9e9a4984febccfd
MD5 416639662bc2935c7b293cfcf353c5bf
BLAKE2b-256 0861a6f66f7d0ebcc80ceafa5f00e337d6850b2b2e793939c60151c74f41ddbe

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.63-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2de6e84ebcf99a994ec3e4f1d1da080725ceb70f1160a97f26f1b9a33954808c
MD5 9d473d60dc2cf7eecae7502389640991
BLAKE2b-256 7b879f1fc9d7b177c33797e55ffe5d31f0e5f4194c428d04942734df9b88ae34

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.63-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.63-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8238c7b93b8bfcbbbdd82d2c013516c2c35f9334c9e5318fd6dfd295e766019d
MD5 86fe655c847b4a023f2161fd7fa9c73f
BLAKE2b-256 a3b5c2ea44105e9abdbd7afa4e6cb0e322a18f6be58a9dcc0da4df068ad50dbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 7ae98d64264d84f79ab5db51d8c2270cd8220ed29440cc3690ca4a2c532f499a
MD5 0cc90db54c3b1873afe6c13568e9f078
BLAKE2b-256 a0f8eca2078dfd67ec27258a114e12fcbf1776c87c5fc4e768f0816a2e98ba85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b2a8960c5f194bfd896e47e0a50582c3e9222d9d960222234ad0c35c4a4f65a9
MD5 e36c9f857522898ae0ae901d339537c1
BLAKE2b-256 125628a70333ae891411905957a1d00f79bd486cbc67d4ec3821bf7580b7111b

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.63-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 52227ebd8a6e4239032b29d6403553ed5e1ece97f26358492702a76f47d83770
MD5 01c84d80ed819558e11d74a293084cfa
BLAKE2b-256 fd35baddbe633cb6af1341be437b65067f0982adf3b1e87ffcf1b37444eb9db2

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.63-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.63-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6dfac94e3c5333e3d1dc572f3613e1ead12572e774d376ae6c5904ddf8ff51d7
MD5 29c05b930d9df4aba7c4ff3f615f0450
BLAKE2b-256 4f7fa6b67dbc7073e6fb2ea401b4c35c8588bb7fb8742446473012d51f19f124

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1ca69d74069d2d3387a19c05c370d94ffe731371dd49170206283d9ac5019e6e
MD5 8a8482ce17604b6026f78a1b24d0e330
BLAKE2b-256 6189c42df8fec02c2df6715a010d1cb6270271577f5c7e5a2de21df335eed191

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6f694aa3d2b2241f38c44f1fc542fad776295f8d7588fe283e10b1587973e069
MD5 38faf53189bfe4d7d2d19373d0ce4bfe
BLAKE2b-256 2cdea37b071d3a7569cca13c2fcf940346c7b0179c32df4c4c44a8bc7b8b40ef

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.63-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 34b7e9697260ebbe4017411e9c716e7ae96d47593551c8e0733428a94e1065e2
MD5 5fa9d46aa82df50db745ec92fa6e010f
BLAKE2b-256 7eaf679f61ce2371f0c894127e907eafecb76d541ae22b631f250dfc79899bdf

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.63-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.63-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 10888c8a310ecc6f242b4e58cf6c0e5cb109b6184e9e425dfd03e16c885536d8
MD5 8e817b8d7e8c774f890e9c62d836c7de
BLAKE2b-256 e7aee9158f4b8de28e292dc942c6475125bdf92aa7ca2c58902d47e77a884c32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2cc4ca2d9df694e5cb66495f46b68f426d4d60319c32b3d01b9c422c3b4bacc6
MD5 adb4bced780f4700a2003c07774f2326
BLAKE2b-256 c76284211d2d50bc90b647fba913a4a3826ae9cc620bc70b930e98a62e6cfdc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3f73758c83a13ab2ed74e25787787e29c0d26caabadc94ba45a2b921f9177436
MD5 2123ef1341bec63dad87bc7e99d4c757
BLAKE2b-256 16f72c51f2db12158a7a21868aea5d2aa74e738115e222ee42ff9d2df7e6641d

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.63-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9845fe6732f219015e5b130bb7bf266271117ab091e05007508cd369efed021a
MD5 be47620eefbb4227385ac96ad2fb9475
BLAKE2b-256 ed9532b7e5cce061dbc4026b4d4748ab7a6dc9f6797c1d39a8d9a69e18a7c1c7

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.63-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.63-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d66859bd68dbf1b8943da7ebb329da1c882bfe56a88447dfe9890a65c659ac47
MD5 8ddd17d2c69d378dd0aeebfbbe9f3be4
BLAKE2b-256 699bfe6cb9a7e2d508e215af09802aad83f582d7bbac5fd4537610bd1c9d1b7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9c1c856067824e85738618d2d98cd4c81c5c9ad5a3e4303ff75424415000756f
MD5 c10f9ebfb29b3ad1a7240e4826729397
BLAKE2b-256 7e461022e190ed040ab1c132312ced9217be79f5c637429f5f843c0a1c4109db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.63-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 33cb94c2589087f6f21e78c6018bd5fc2affa6aaffc77e5928405b1720a055a0
MD5 69596da06acd526dca8f198f8d5d1ea9
BLAKE2b-256 f1eeaf2d61b205a65a870680fa44729f901a4d88feec0b766b6eb054c26e4815

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