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.68.tar.gz (11.8 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.4.68-cp312-cp312-musllinux_1_2_x86_64.whl (39.2 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.4.68-cp312-cp312-macosx_14_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

passagemath_latte_4ti2-10.4.68-cp312-cp312-macosx_13_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

passagemath_latte_4ti2-10.4.68-cp311-cp311-musllinux_1_2_x86_64.whl (39.2 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.4.68-cp311-cp311-macosx_14_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

passagemath_latte_4ti2-10.4.68-cp311-cp311-macosx_13_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

passagemath_latte_4ti2-10.4.68-cp310-cp310-musllinux_1_2_x86_64.whl (38.3 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.4.68-cp310-cp310-macosx_14_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

passagemath_latte_4ti2-10.4.68-cp310-cp310-macosx_13_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

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

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.4.68-cp39-cp39-macosx_14_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

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

Uploaded CPython 3.9macOS 13.0+ x86-64

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68.tar.gz
Algorithm Hash digest
SHA256 13d62d9bec17da5bd4461cbe83e7975cde917e80cd5b3c7b8b6383774785092a
MD5 cc510f70c45d1d2a4b465700f59ff26c
BLAKE2b-256 3f65c13ee287ba84d4cca241266808b4dfa96fffadb2568b031ec5bf74cc2833

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3530c8620f831f2d1cd1f6094d75c3d1b52cdea2ac2ad39683bb8a5e553535c0
MD5 387dbddba7cc6097f25535541c5e691d
BLAKE2b-256 cedb1bc73b700c41d4f9ae0d494bf55e472b6d2a26724b841fbecb781017c88e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6ee104687951421e7a3eb57ecdeff681ed460c47512679aeca83434ccce517e7
MD5 06963cdd34abca1bd57ec8ad1566248a
BLAKE2b-256 e353d964d28be198bed546e1aea756ea42f0cf50427a7ed1fc696b7448d2fd2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2d41006937fee6c37e5fe5d64d11f0c62bbfdbfaa6fdfe9cdda50801ff6a4c78
MD5 4ec3dc6daf4f0f2e515406e3098ae0d0
BLAKE2b-256 7d2fef62de3a843e152b750a1bdf08167d2066d84ddacf4a5712a7736514885f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 996ea29746cacdf6ce0d45516b2069d285f5444cc5b0a12fd1a4932e285e7f4a
MD5 de69b7d7c464374c12ce7e622aca37b4
BLAKE2b-256 ee175c70e347a6161a7f6f1961d114046b95ee2202ea694e19f2db475907304c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0a71c1fb4ed119b1d1944953aaf631d40a710fa0b036fbd41498237fd2484c3e
MD5 21466ce560deaf052c3144c1f7be92bc
BLAKE2b-256 00084d9ae84d83b21e5a0e12da702f083412cc513840e7be5c99666abc093bcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d067a1601fa0fe3851d6d37e44ae6cc5798f0cb1c3adcf7db0b917fbd9742254
MD5 27ef62d46ce1ec4030db6c1c30dfc3f9
BLAKE2b-256 66b5db3226a26f7d93ebfba0b681e49442ef0f21dd9ea3294662fdc93d047c7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 22a76b8ca56e2da617eaf24c128ef9eb584a545b74d6b31ccb1b1149e833d041
MD5 a9a1408b493458864d3f36d3d5a7a15f
BLAKE2b-256 e073b44684b2b101b0a91ce4b61faa9eefb285a9695781317e53e46e524aa09a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0ef628d0156d9c6390ad97dd9451e0eb129f29a4ce3172db02746e7037eae288
MD5 b7c7e582c60d84b612ab1da6e6f3ed0e
BLAKE2b-256 c917cf18f1d96607ba9b5d125846557e813489c06d4bf91658ac8e7f5b662be9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ac4ac06d36c317b1a7dd6d0f1353a8367f8fceaa1886d04a4ad5e48693cf2b95
MD5 d597e75b7fdb0c2e5e6ffe63297ed136
BLAKE2b-256 6c8dd202e894af9512520d69d3afd8a948462592d3d70afe21e55289ba914fee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d903bd9215c6d2f0d4a2cf16592b2d4d61fb6256ddb1b36e3468d80952f277c2
MD5 de0735f9c29d2f720e6b69c2ba0f0406
BLAKE2b-256 a6004491b01f31cc945572e70deaf8ad2fffcd77060ad655d955b29d654c4586

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9a99fc0b7398e764aea5364203e660d6f1cb1a1172fd0f04658e3c620c162f65
MD5 fe2c07dda515e9c535c711c16b9572d4
BLAKE2b-256 85564258fc08fa57907cf749ed90384a114db7436315c0bd7f8c0702aef1f94d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.68-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d27a487b12baf59ae51c3773707acd93f0667331d0be63ebc9dbd8d3e4335cf7
MD5 41fd860615b7a7418beef067e087ac82
BLAKE2b-256 f82f0692a043bd3bf336ad78e7fc39d6c86657bf6d61d5367d378af667203b76

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