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

Uploaded Source

Built Distributions

passagemath_latte_4ti2-10.4.66-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.66-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.66-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.66-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.66-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.66-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.66-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.66-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.66-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.66-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.66-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.66-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.66.tar.gz.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66.tar.gz
Algorithm Hash digest
SHA256 0006f656b60e9d21dfd2dc985f027ec837ebe90eafbf3dc367aad8402d4b401e
MD5 7a5bc414f8612c8873d2cca47db5814d
BLAKE2b-256 044a6c90159dfa49a84ba2463ab8beb73c9066fb001302fe2c1dcdf0cd85b5d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9973d0cc1fbd3b420def69f755d82ad85aae6232c4e094eadd375503237e9657
MD5 967182168b2519cc5814398aa8ceaf15
BLAKE2b-256 4e11bfd8e241d17275128b9d62ffc556df9cd47650623599da47afab1e72d6e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 5ba98069f7a3a6937ad8bf8042c07ab75c3e8713ceb3c4d927e257bb693644a8
MD5 9b73439154f436b5b6889ded293a83a9
BLAKE2b-256 2635a4705671d2344ae6e409b33bbd9de1d0c0c621a5b144b6ffbaaee93bfa08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e7300920a7ba95b91f69f886e2ea337dbc0f2453997bff02d8e924d04493bf35
MD5 49b34f60d348dca035e397dade52e834
BLAKE2b-256 e6a5c7dded75593ed1cabcd918e5243bcb0d0de222af71c28bc1f5e7007a3236

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1c6db7b3323db0e1b11bb3fc5776f9a24491b0baf30a10ccd15a38496b514b9c
MD5 4dc9d5de9a6c77cc47c52440e6b1d410
BLAKE2b-256 9111e0da8f4c0241d7dbdbdf0567387fed3f111de3665cd4b4ee221fe5a39c3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8a119f16238e1a603af2fb18a8eb24fd641e609017980a7c86d1e4d249f49683
MD5 977f05f4d39292695d41b24b8bbf7a8c
BLAKE2b-256 a342f9a17b911d7a7be6f782edb7e37290098d0e097331ae586b3c17405160b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 bc560cf582d82e40317c97f636e246dfea8c36be977683180b21c37814c6458a
MD5 5d986db9cf2418597a6e2c58c5eac100
BLAKE2b-256 9a28adce9cf47000d7ac31bd7e17ce89c3decb5448502bee447e6c08f6942893

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e007a30d9f553e55dc2cbe2280ad4db25ba29520b8a6ebb2e921fd62ff6275ff
MD5 07811ad6483df1fcaf256e8fa65342cb
BLAKE2b-256 c1a3d2ff683bdada41bef98d9f24be6496fa33f37036dc02e350ae603f6b0dc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 806c985c4f275fa7899bd9f2160c34ee68f828530bce775bf9d985b4bb8d163c
MD5 50e4666f86fcbe142f806bdb4d54294c
BLAKE2b-256 5c08b4f116e0dbac74b1c4a32d4836b8b1fce1e64537516e1d0f989aba56946d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 81f4060e3e34251bb6f1821c8974d8361c9babdb4890f00edd104de5461fde20
MD5 79f98ae91cfff229ca5e656ae12cb92d
BLAKE2b-256 ab00cd3254ac6abffdb1ccf3d79f3f8892dab5f44947b46b7f8c830ad74a26f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0864d7716718eba05742f29a0e981f2c56197ca7cf9f6cf345de744d2f965f17
MD5 d090c6cab42e1b589cf14fd1511a59ab
BLAKE2b-256 d80ef155b97aac5ba6fd97ecd2597d6d1f7e9e3cc3ef87c41398befaee6ac515

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3d5339bd9a60a05517d6bb75a774bcb15817657a9eb1a4f84236f8266e0c0b06
MD5 c62e12fa7e060cb28118eb5673e357b2
BLAKE2b-256 dd7f2842618a7f62155c0170997edd9e1c964d21ffad2aacd11226c62f461425

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.66-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 bc21d0753b0e5137b697aa0c521dd09242075cf4c87dbd20c3ff6a6d3c6f60e7
MD5 da68e9382d4bb6eef570968268f1ef7c
BLAKE2b-256 b977443f5329994f8976e81aedc4c6861b4055b0f00312d8e21052f781ea01f7

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