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

Uploaded Source

Built Distributions

passagemath_latte_4ti2-10.4.61-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.61-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.61-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.61-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.61-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.61-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.61-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.61-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.61-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.61-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.61-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.61-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.61-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.61-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.61-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.61-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.61.tar.gz.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61.tar.gz
Algorithm Hash digest
SHA256 06920a994292beda59e10af1038a8b0592837c3c8183f706b1079e9567e9c36a
MD5 668d201d60a05c2b3f8b288c816b8c35
BLAKE2b-256 666b159d402466e217285a025c9cf19168e6ce9adce4652984c05ce2185bbddc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 927f942c034c934dc48aacb4a3878184eb2724e1ff4be59dcddad725fa0c4675
MD5 2a1ff51c3f95aff7cbe3d93eb9f91a65
BLAKE2b-256 56a01f9d7c67d4b63aeda798f46e954257a06b01cdccd7525bbd1c5367582e5f

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.61-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.61-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 afc6b44b4103a3c2b8f331b6f03b3b6f2238ba40ff17f81f9e5bf183001c6ce6
MD5 1e106f4f10fc8f92172407b773cf21e1
BLAKE2b-256 c02d88ae8c5f2d6d211fb2e2de64a5b2f4c7a66b72ec48199df2d821ab36c0bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a562abe7a5b6b4c5d1a611a49461de95ce03f10f51b55c5a4cb0719d594a4fd9
MD5 e03e45e9613cb360a522f4790c7c4d14
BLAKE2b-256 5a786f3ae473b5ec95d8dce10957629c70d3f7d6f160a03943fe691c05add2d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d25e28010c64edd44b49948eb56686ed54e8a02e28858f4ae09383c61b15bda8
MD5 f66c927b348a1a9f2370c5b031a8b556
BLAKE2b-256 9b3b26786e401a5389a7fef58f8e25a2c629054f70fdc38de5a58b94f7bed50c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 61b75d1277ce502da3748ba00c58cd37590233adad8b278a9e14ce64bbf3ffd0
MD5 71b68327a429f8422163bbb846b11d08
BLAKE2b-256 cf19fc34e904d0193b315d67e3edb80b2161ede61e2c4acf62baa9d62e27837a

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.61-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.61-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d046feb60147157491c83bafdf5752bdafb07ddf2728440bee64baf76a33406a
MD5 1098615977fa8f769ddc90be46d04d06
BLAKE2b-256 0dc42681924a349af0c7d4a911b6ec9fe15c70e02a65f8fe0307a6d35be12476

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 16a16f15d7298d844cc04cf81a724414e4132397cd51d6045f6a9eb5b4e5b3be
MD5 a3efc4e8b207d3fbe6e7e9ac515dde73
BLAKE2b-256 e4fbe59f757947bfbb689d6e21f31296cabb6dc11bf8ce00002eeb16d5501a38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6902e07f7091da4aa4a3c51f06cc7e2c23163e76abfa3318c1f36a528797d842
MD5 2e97f603b877c358084a71f75325a4b7
BLAKE2b-256 11f10048f4ff73f6f068a1a740678c10e1a9839ed1a0307eca3b3af69913284b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 aee24ddce679e020e616aa2344bad57d8e14eb52cbfbe016618f6363ac32a2e9
MD5 41fbcf47ad942213f1e4b41625e0d53c
BLAKE2b-256 7c64fb89ddee5a4f076870d63f9944fa6b3a5f4bc344c12b5266323d3e74e00c

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.61-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.61-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ed7d20cd3517b1c31b104b354bae235b971ecfdcd9b458b88346c260684387c
MD5 d15f3cc2e16d0f8d307cf05ac603e10c
BLAKE2b-256 c0151cd4cd916944308f65dd84e5663da4f4ddd45fde4b7d1d2925b4b98bc7ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4acbdab31b1ecb63190f90de275c773a3f51dba5b2eb6eb548d6194acccb92b4
MD5 a66ba0780d92b3522a45352d40dc5848
BLAKE2b-256 939f393f4ccc2f97caac256bd3007a3927b0b20a32e690a45b914db5afad988e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9bf57eafe47334308397deabc4483b6b32b79e3eb6968c84aef9e186b39fb596
MD5 e805aed9068f5dc3431018703d1897e5
BLAKE2b-256 fba67a27a96fc18885f40ed95fddf87e5cdf02d223d58600b751881600f707fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 527bc4ee15b9e1367c651803af316c8d4e29fda9cffa9bf78ffa50ce9069effc
MD5 d0ad7b46dca20c35c92bfad0f1caa323
BLAKE2b-256 a754b2864beae9d81623d1937bee31659d34257973043bd807854472135a4dbe

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.61-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.61-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5fdb704dd4f4767df44593b64c8451083b1061b5f0eb32051dd0b1aab879deaa
MD5 02c0029547591666b5b6a1b42248b734
BLAKE2b-256 45507ba2bde93fa64e7147a537e9a73749391f1a9fc4fa28f0b7b5adfb261a18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6407f67efa2e107e15185f22fcda7e0aefa9950e256396e2c31ebcbdd71eeb0b
MD5 569cfaccccdb4c6a97cee3435871d4d5
BLAKE2b-256 ba8bb55dddd0c85d24f4fef8509172be098666117808c6798f29f02d070a0977

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.61-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6af4129aef7bfc2d36fea9c5ca59b5ed47a068b420d655fa5f860dc87a684607
MD5 9bd2c6d7e0d6e88b24dc9a9478d2b23e
BLAKE2b-256 cda905561218d893e684599dfa670c63dd7162435bb1499d8d56764843ed79cf

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