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

Uploaded Source

Built Distributions

passagemath_latte_4ti2-10.4.62-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.62-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.62-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.62-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.62-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.62-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.62-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.62-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.62-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.62-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.62-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.62-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.62-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.62-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.62-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.62-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.62.tar.gz.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62.tar.gz
Algorithm Hash digest
SHA256 cd41e9f4b6ebce87a1685444be3b5ddf6a4172e57aaf92fd1a3790739b5d35e9
MD5 d0deb7916da439c417cce69470793748
BLAKE2b-256 c5e7e5900bc4105dc73d2ccd51e4af6c004bac84b11e7e70ea082336945cd0b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 60f541e4dcc2402d056a6701c1c71883b7308073e7e0964c37031f6ec5c0a133
MD5 62b6bf10dbbcfa1c8d93eb4044478abb
BLAKE2b-256 bb279ae49adf2c5a31ac43858a8491b91efbb5acfbbf393fbbdb03802f42cab5

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.62-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.62-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e6ddeb6a27bd935e0e86e58b4bdd6d048ca86d76fa13dae7455f8cb05b647860
MD5 7438df5f6009533febaaee990711eb79
BLAKE2b-256 b041bd09d2faa4abb642a329ea4356580408c34fa25683493508c0ae0c9b7c05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e710a46ca5e3a61045c752f079709c16807bfa18bad3cf7fba29f237d27bea6c
MD5 1bd7ea011df0085b99e43cc6b8704d70
BLAKE2b-256 9e3371a55077b370deac5708e857c23c7d0b2cbb889128241b002b0c46c033c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e6f9fa63d7868edaf214704c20eb20d854bf5f3fe2e89a90d3f6dfdd8eb9e7a7
MD5 7fca3cb5ce404751ea2b71f9eddf595c
BLAKE2b-256 23e951a525252441baf1f9155a7d9ef533dbf27d694c423dfe502669549a3ad1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a5747bb26632e5213fa75810ab6e261ddc8d17a3f70c95d5817ca6edcf9d8c8d
MD5 6809b0938f27384d4292030a741a8e70
BLAKE2b-256 fbcbdcf3de19c69f59d3543c2b5bfa9729100619c3ec342e013e54dab921a180

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.62-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.62-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 415eacf7b1ba82f9639c18cdcf8c8cf3e65656d0c894db6a6df7fe589914c52b
MD5 69070656bd13d513149e1e48ecf045dd
BLAKE2b-256 01a3667c8ae6209b10c53db571509e7473da9157e0e0888cd5a0f8f7b86f902a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a67aeb933219fc59c1af9a1aa1fc0ed0409e91b594c09503aa8f29ad3086dcbe
MD5 c2baf21b05b4484dfb6019e083bf5654
BLAKE2b-256 8b12109925af22029fb78631cf5926d482af56d44670594919aab7f7eb77c360

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e8823a973483667f4ae4f4dcb097563f49b1631d9007c320e64e83bb030cafc9
MD5 d27ad089f7dc300e0ce9362261d82e84
BLAKE2b-256 4785cb2b22a38beb54ab823bd4c3156db280647d3bf97b7db4581932b417511f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8b86e20d8c9dfd41a9d7c8975122952159fb0d50f6d5473354a5e493e2137b4d
MD5 55a1e5446d36429b4b2bbc3a8fb140bc
BLAKE2b-256 422e309741c602e52ec8323e3f4cab98513a0d8a90558609dc0f1f6fe52b803b

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.62-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.62-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 69b4459ff10c5a673d9ebd3e803f30dbede3f72b814e9008e5b9707eb5ae9bee
MD5 b6564867ea9389e175161f427d8ed0ab
BLAKE2b-256 c2fae4903c3a924e95f6f211f23b098c54b868960d15e144aafd5de17e7d5fa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 36e7ebeb8f44a8d6072b6f9263defe2a0224c552c259cf19b0e69fc8f4b542ad
MD5 b8f10dc9a38c3dda8765f7ee0cbe93e9
BLAKE2b-256 b1c8c0522f7c029cd8ca65bbfe645560eec7e4706bced998dcebb65057b52f87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 bb0d78292d02c0b0b854ef6e564fe8edb052a134768dff374a9337b26d98a337
MD5 86bc1e341e47664834efdc25340fba4d
BLAKE2b-256 b8af1ceaacb997d6e64294f846a11bd60c8f5ca5a43f3345def64a890644e644

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bb1680f0727f326f1104888ec7f635d46327cde21988e659fb8095b627b49cf0
MD5 105412d4122bb7e606ea85d2b47a32a2
BLAKE2b-256 597c17d8d160642d643f9bdd4b8d784d3d83794b0e1b2c2d680a30296ae35e7e

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.62-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.62-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f6400226dec45ee4d3a8e5fce7f0c595e61eeebf2ffcdf1b54418edeca9f43df
MD5 1936a1599fedb95bb14b21630f5492c8
BLAKE2b-256 06b4dce2198482953e4ab3a4d1aa628cf00dbbc8e83cda81c1dbd5e9d5b95d1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d6b58a09d677c79294050207818517a4c209f377550925c0ddd1deaa718a5f9d
MD5 d4c005eb3952c338e4df6a59f235d0d6
BLAKE2b-256 68f9f13fa4c6f139d1a1999865314785c659e4b8a656166146441bdc863dfe80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.62-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 63bbbf7f9cf1aa115493e5213f6d54134fe8613a514eb37c31db15541d379a6e
MD5 f70d62c8a04b8295de312701bb0f2665
BLAKE2b-256 db8c5476ba0c9ac914d7d9039a0900ccd5b863e52484b8e5fb8fe9fe785197ed

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