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

Uploaded Source

Built Distributions

passagemath_latte_4ti2-10.4.65-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.65-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.65-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.65-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.65-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.65-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.65-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.65-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.65-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.65-cp39-cp39-musllinux_1_2_x86_64.whl (38.2 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.4.65-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.65-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.65.tar.gz.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65.tar.gz
Algorithm Hash digest
SHA256 b4f39aaad6d2ca043471c5a64b29b277b18c42674b64320c5755368fbbf952e4
MD5 ae8c7a29bce4f545e7ac2a3c302c026c
BLAKE2b-256 fb7beca5d0cedfd6bbe2877d62c270af9077281322f2cec8a0dbb967f6041f4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6646a044a04bfc17855c8b359ec7e5cbbbec4629122cec69f4c7f9682e32dba1
MD5 156818e6d990584c567c4e38a420a28a
BLAKE2b-256 1ffe4910002be853acb851f953b78626b56adbce3a8b3312099037efc1b183a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 471fc837880ff999b61d915fa291df511e3a4434857abea6c0a89ed6784ce056
MD5 0251aea1c4e415c4f1f74c5be4013a38
BLAKE2b-256 d67400c4bb80da9ae38cbc2007e2e2ea0b602b4332f21a1bf76e8d6f803d8173

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8a64388307a56ede7579a141cc2461729a340dad24677a3b17b9f708906a5c96
MD5 ecf6db781b7ee74d45180a71cae3f7fe
BLAKE2b-256 aa6224641a7c508edeb27ec6fb58a9c5ac601fd89fe81f20dfbaa5a4bae5307e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e268b45495fe7eab989d294a9a72ddb30296191b346d4996013bfcac0fdd4a54
MD5 9093953355c5c57d31476ace86d5e142
BLAKE2b-256 6b980fe672e627116e804a5a3bd843fc8b3a9f66092d996a9d8535877ddf51ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 937e4d2b51dcfcb4e2532af5811a2843693a30085e59d2880e7331f9664ffe87
MD5 e351a6b1b760e1ea8091f60e62307cbe
BLAKE2b-256 d217315ecbc6b72992e17d681c18af01aa46a86e9d05c46268970bab395e90f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 14e3599f7f65bbda8273f47ed8c0337957f83867865a492774635c51a04d2f5a
MD5 0c076e7c9efce6bb8a47387561ce4373
BLAKE2b-256 4643a07dd99e64dbb71960f05fcfa7063186a071b1539cc298d96c45a77ecc3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b7632cff268644eea67526d8201cc851a663132a79d867cf0b9cfafcc1013913
MD5 919b99c6e8f00f0b2fd42933b7a5120e
BLAKE2b-256 50f7da75917516c4bfa3bd99e6e20d28fd04eff5b6e885b9bcc43419cde5812d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 fb8c7bfc1e1babbd12f0205374356c1b6ea7fbc6a9cb10ca7bceb9ea3d9ae38e
MD5 1053c06897bc0e2684edc11cf1c6c55c
BLAKE2b-256 6198549ca21ddd664d2e629ff4f39247833fb5260adde258f40fae6fbe34139b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 46d8e7727b492c60a1563497f420bde303296cb4f7a700d566f48c7ac937c852
MD5 d859f8551eca360e9e75ba922ff9f2d4
BLAKE2b-256 7401f36e1b95389bed49369af1a5e3f44224fc51c0fe1dd4a633d9e3ffd32deb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2a725f71d4715ccf456d014f716da01c068403bca867d76a6a2da5353119d980
MD5 6f4f1fc7e82fd652693542f3b2d1a431
BLAKE2b-256 909a7c595ee680589a4a38ddcac6367551c8ce601af20115453c54dddafa5aa1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b4da02ac2a78f91820e8f5710a147689f9377602f402e066f573b8b58cca26c2
MD5 054723c4ed8e08a628212c7e92f9020d
BLAKE2b-256 fe52d3241209c7d2de467cdb20368cb6a61874fb5bcc5449556703d02a174664

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.65-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8b648420e5ab0617ab3a6e442c7de2ed89581c645ad14c6618f97f3491f91f64
MD5 5610c5fd5cd31bf1b31ab8c35bdb3736
BLAKE2b-256 122fbb16ea5c348d78046a011f16434ef06d86a401cdfb4296481acb11308a01

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