Skip to main content

passagemath: Lattice polytopes and applications to toric geometry with PALP

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-palp provides an interface to the Package for Analyzing Lattice Polytopes <http://hep.itp.tuwien.ac.at/~kreuzer/CY/CYpalp.html> (PALP) by M. Kreuzer and H. Skarke, a set of C programs for calculations with lattice polytopes and applications to toric geometry.

What is included

  • The binary wheels published on PyPI include a prebuilt copy of PALP.

Examples

Using PALP programs on the command line:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-palp" sage -sh -c 'echo "14 2 3 4 5" | class.x -f -po zbin'
0kR-0 0MB 0kIP 0kNF-0k 5_13 v8r8 f10r10 10b6 0s 0u 0n
14 2 3 4 5 R=152 +0sl hit=0 IP=276 NF=179 (0)
Writing zbin: 152+0sl 0m+0s 644b  u36 done: 0s

Finding the installation location of a PALP program:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-palp[test]" ipython

In [1]: from sage.features.palp import PalpExecutable

In [2]: PalpExecutable("poly", 5).absolute_filename()
Out[2]: '/Users/mkoeppe/.local/pipx/.cache/db3f5a0e2996f81/lib/python3.11/site-packages/sage_wheels/bin/poly-5d.x'

Use with sage.geometry:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-palp[test]" ipython

In [1]: from sage.all__sagemath_polyhedra import *

In [2]: square = lattice_polytope.cross_polytope(2).polar()

In [3]: square.points()
Out[3]:
N( 1,  1),
N( 1, -1),
N(-1, -1),
N(-1,  1),
N(-1,  0),
N( 0, -1),
N( 0,  0),
N( 0,  1),
N( 1,  0)
in 2-d lattice N

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_palp-10.4.66.tar.gz (4.0 kB view details)

Uploaded Source

Built Distributions

passagemath_palp-10.4.66-cp312-cp312-musllinux_1_2_x86_64.whl (30.3 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

passagemath_palp-10.4.66-cp312-cp312-macosx_14_0_arm64.whl (4.9 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_palp-10.4.66-cp312-cp312-macosx_13_0_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

passagemath_palp-10.4.66-cp311-cp311-musllinux_1_2_x86_64.whl (30.3 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

passagemath_palp-10.4.66-cp311-cp311-macosx_14_0_arm64.whl (4.9 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_palp-10.4.66-cp311-cp311-macosx_13_0_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

passagemath_palp-10.4.66-cp310-cp310-musllinux_1_2_x86_64.whl (29.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

passagemath_palp-10.4.66-cp310-cp310-macosx_14_0_arm64.whl (4.9 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_palp-10.4.66-cp310-cp310-macosx_13_0_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_palp-10.4.66-cp39-cp39-musllinux_1_2_x86_64.whl (29.2 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

passagemath_palp-10.4.66-cp39-cp39-macosx_14_0_arm64.whl (4.9 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_palp-10.4.66-cp39-cp39-macosx_13_0_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

Details for the file passagemath_palp-10.4.66.tar.gz.

File metadata

  • Download URL: passagemath_palp-10.4.66.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for passagemath_palp-10.4.66.tar.gz
Algorithm Hash digest
SHA256 4c0d8d013b5af19e49108e53bfa29c51ad1dccc531c9b85eb8f4dfced3abe47a
MD5 4023bea141ca6c28a0f957549a84cdae
BLAKE2b-256 c0338353c4ab8f96c8635024eb34c36cfde5904580cd256b5cd23f0499496268

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c99d8380b3b02abecb0d9b485d8493b68438b61c66ec1ef4b30302b68e9dd9b0
MD5 ef4dbdac90879323d24184e470ec0bb0
BLAKE2b-256 d041325e3cde0a3f45a616847cedd736cc5d13a2a967e6baf0bc0d104ea467d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2000a095d1b1221a7c532288fe8883576e533cf185a89251eb8cc86f78c7cb1e
MD5 837674df4e6a54189cf84b11f9566dba
BLAKE2b-256 b39a2d01985d6e97b784814f9510ac3ed88572277bc3c38b4604997989748a3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1e073b555b733f50484ee6838d7c177e1ff1c40a61f517ae926e94d3f432d090
MD5 b947c1c4595a54395a14aaa2c0655d52
BLAKE2b-256 d0ad1a2fb44c7bc0b0dfc25f6915750ee15b45d87b69c665b2fcaf2353979545

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 15fbf32c739d836871ac2043aa55e6df5b4643123cdd08be2c50a55b0a3a9bb3
MD5 476441c14ddb2d9796a4be960f6e56c0
BLAKE2b-256 558285aa6e94a0cc8ae275021890667777905901f5290d824d8bc01b0293aacf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f65c9ce724c72324102385380cd3bec54884ad18f6f3f7a686e0cab604faa585
MD5 2d03b44dec5579edb35d51aeca352854
BLAKE2b-256 deee431b7ffdd595f5ea3305e37f86de1d76219a144c9d0e7a921b3fd465be87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8dabfa13d76825494d4899eaeb69057e18687cf081702f41deece7fee8afdc11
MD5 eebff1e5bda333bb7e5732dd37fc932c
BLAKE2b-256 50fab7bb55b9855adb869992969e37742efad0a0b95b83b4726deca5ad239cb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 93342aed7614271fd33c24481c12a7701f9fb1af085a0d5c23b4cf5b7fb41b11
MD5 a81846971231d91f1f2256d15de66744
BLAKE2b-256 b94d85a1b5f802bf914309265d7ef9c1b62142e7047eb9b281551dc8ea261abb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0c4fa498c2fbd8fbed290dd188c17162d229dd6e3a77d4ff0def0a819e151479
MD5 8bf4b8831d024fda4b46f5a308fdcc4f
BLAKE2b-256 399d8bb5b945b489f1e985a47b42e2d14a78c88a65b1a3752e49af9f4a41c5db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2d70935b234906cd704f63c24e4ec7c509894159f65c88199482d56fe1f60d74
MD5 99bcf8e061845286f8dd6cb6bb1c7709
BLAKE2b-256 f2b820e8722b2dc304c7c5c28984d9607480e8026750866c6d941fc6f8e7e929

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a43446428701215930aaf2baf87ffedbe4734f3e11b36322db35874cde7d2eb6
MD5 27251c9fbe5fc355c0e953b6a62f45e1
BLAKE2b-256 01bbf8825bb81e926ef68e665a44871a7eba471c83780bf755ebdd09cfb91340

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 99a7fca5b6ee171ecbbc435b29b93ba6134199e754dd800ab77d6877d8bea920
MD5 2f019764104091254177ee787fc10508
BLAKE2b-256 d6c03685a13122c8c43e6e9ed29dc96c402fd2a090b89b5fbacb84383cb5dbe1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.66-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0892e71a10bb827f489a2740f93771eaecaa47a54d7999bd58ddca0dbe872967
MD5 5c1520936e9277610ced1b38b4df368c
BLAKE2b-256 cebe32397c9820e70417eed059bbabbbf2c6e025f2ff91cc3d5366fff9ca13cb

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