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

Uploaded Source

Built Distributions

passagemath_latte_4ti2-10.4.64-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.64-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.64-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.64-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.64-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.64-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.64-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.64-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.64-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.64-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.64-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.64-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.64-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.64-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.64-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.64-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.64.tar.gz.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64.tar.gz
Algorithm Hash digest
SHA256 833b85f86140dca94524a0efdb05025671292e75cbe015034aaed247f42c1ac9
MD5 68584941ddb9f47be9f537e1be975fe5
BLAKE2b-256 71680d90f7c1962227114a3136087f9f8ba657d70557f0ef5d712d84c5082097

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3e1fb5f9b6020a8cf41482ca65d608527f946699751c8d6991d6ff0891617f0e
MD5 cb3fe384e895eaa24d0911bf11729e48
BLAKE2b-256 acb5f1fa8c3d8356de60ad66708212b4e458d0efc4d5c7e2d04e1ec82501d8d4

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.64-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.64-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 844c90eee50664b82fc489c4102a73c8d6a513bf7b8a850d548f709a064c3745
MD5 477121fb0bb1a7ebb227d48210f4a7f7
BLAKE2b-256 a93bb569342513dd9652a0540fbdd2f349ddeec50e5e664a3ca086cc195a7008

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0e399a3981e90321c075fa6df92b82357acbcca20e222fd1c268718f7e518ecd
MD5 65656a2dbb44650b5eecfb07346c8082
BLAKE2b-256 b6c4b62a43b82b5aa35677271d39d6b25afe5b4759f33a7e09c791ca3cec9187

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 752bd3d04759366366b1a46f99cf99488f74bc994c84c1e99c108617e4ff2985
MD5 4f6044578d600b6e8d8600478c64e8c1
BLAKE2b-256 187c65f866639a6f99b69b15e3c31c32c80e0b29474bdf986574e34a91c0e627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 99a00e88f0f54105d4f09b7669d1e554b15ef80316720ef0dad62ed0b890762c
MD5 daaeecf2948d4400bdf1419a36ce735a
BLAKE2b-256 511e0b210549f42d025284c0244ac02420284a66e9286acbf11a6f350e1d0b90

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.64-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.64-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5f38c8845cda9cb1045d7b39358ac38880ae930eea153c47e972ad93ccb8440f
MD5 18daa4e21bc6540eae735690f01610ad
BLAKE2b-256 898fc5287703c1f1ad56281f888541118bedac2bb192d73c9e74b37ab264e903

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d3b59ba0f15ba245443d6d3fd1cc2a7b3685fae25a1f52515ed4d9d4af2e9b0a
MD5 767de7ede3c772abf5c1aa78563165e4
BLAKE2b-256 dcedc98bb0e75ae2e3ec31e81cc1976447e6096f56ca2062409ce57b0ba0eb3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4f0742841a9d1870a84ea593561df10d8f52ead4305ac46a75057375c96795c8
MD5 0eaae56812223868197635cfd67b08fd
BLAKE2b-256 220958b1f792643f538f83e962af77774918f24fa7111e8334d62642644544dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a8fb67676b323d8bdc63e3f296143b1215d3130d890c87e528db0aec73710e74
MD5 08e873e933e4a0ce84a203411b646fd6
BLAKE2b-256 647b8569724f193f6d95e4eddcc6193130d7fd093ee0794f0eac8a14e856facd

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.64-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.64-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a49d925f8662183d343724b226929fcea86dae211fdf80e995c1e3b34683c8c4
MD5 2e8c3817e80fb9bcaca26e806919ad90
BLAKE2b-256 a801e4c553e0514944ed6c8dcb5da2c5f1b1e833c44b5e4d4e0fd95f445613a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a92959d61add5f172e15fbe0ce9e051c2b6ed70023e00e75c180077ab83c4ec4
MD5 3ad750c18030d36cdcaf1693665af620
BLAKE2b-256 b2b83a587d68a4978b923cff8392a0721e8974df929513dccd1f5920f08c8f1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 32d3d3d504fbc7f2d9e6f21f6b0ad15a1c5326b8bbb4cdd5c0a439bed307de28
MD5 a6004021abb810bd76acac08e2e13d1a
BLAKE2b-256 93c2ec7faf37a903ddaedaec20b91dfc90c98b60ae094d155a978f5c5f6e2428

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3cfa00a3048273ab422c65a467c0e5b531737afbe1d9cdb68dde4dda39c999fe
MD5 aa86439333468b3ab6a5fe0d1d052372
BLAKE2b-256 14918226c70ed39e553c3968f81d0f90410af05e01dd533895be6ed0bb38d210

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.4.64-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.64-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f5a6620fdc9ee46c560599fc27a202dae585037342d960adb5791415350b2efe
MD5 a5fe610799bdc5c7a96e237f8a712fa8
BLAKE2b-256 4fb30bd6cd713f2b0493d9df176ade7b056095bacf412a319b68478870285aab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 155c8e21c5879d274e1dbba652b9f2faea4f877e8457d083a1c337cf2d8a0ce3
MD5 914283ec8f03a0e4fa31ac35a54a869e
BLAKE2b-256 ff79706c5afa5561732cc517b0b24a80d16a5c19b0eeba830890fab61d880f82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.4.64-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 75828e1e558d5233e5bbbb730b26651d4d6aae64c20e6d91530070c0fdfc1b4d
MD5 c6ba01b8560061b159e2585af695ade8
BLAKE2b-256 ef18061036ee314cfc5a93ae21dbf2a4c20711667ffcac44e8a787b534eb32e0

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