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

Uploaded Source

Built Distributions

passagemath_palp-10.4.56-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_palp-10.4.56-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.56-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_palp-10.4.56-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.56-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_palp-10.4.56-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.56-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_palp-10.4.56-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.56.tar.gz.

File metadata

  • Download URL: passagemath_palp-10.4.56.tar.gz
  • Upload date:
  • Size: 3.9 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.56.tar.gz
Algorithm Hash digest
SHA256 846d22317bc25b80679d0c631cc0c0010f81522ef16935e005c66c54b94f0fba
MD5 ce965a030b02ec1eaecaa06fcfeb3bf6
BLAKE2b-256 4edeae95c6e7eaab976e6c7a73262391b4ae52f9cf80d9957409aeb6cecd5adb

See more details on using hashes here.

File details

Details for the file passagemath_palp-10.4.56-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_palp-10.4.56-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 719c2634173f4dc9b9e9439c6821175355fd91b5fb0bce1521ca8e4a118781ef
MD5 291b4a581e150b9b158dcfeb8103e3bd
BLAKE2b-256 ff16a36af2dc0791904c3ce5df905caf5885ee737b21a635352c4e20413f0783

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.56-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 aaa720d25593558a087d8c5e27a068abdc3ec3ec882b66f0d18f0da3f1bddcc5
MD5 c80905b9f4f4f05266938db1648838ff
BLAKE2b-256 16d57d32f5129704db39d262fa267c74d7366c1e6bd2143f683b6cda4732ab37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.56-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3f2e52d4e6b5215732704b8a7b2ebef2a5f34842cf587a6ecdc3c8e423bc9a0b
MD5 fa572ce14014c8ddd05fb0f6c5b30e56
BLAKE2b-256 55c347cf30419b05baf99baf24801e23e999681ab02225056200854922f2639b

See more details on using hashes here.

File details

Details for the file passagemath_palp-10.4.56-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_palp-10.4.56-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 781802225b685f79a18033e2a3debc0bad62f3395a9c2a73946c71faedf2abf3
MD5 a853daee49137e7b87b1066173705e16
BLAKE2b-256 fdb89e20b634b81425c0d1701813cfebe4e4c8c0b90e6bc252d70a75d7cc8130

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.56-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a73a1bf3d0d11696764e482326cd029293227d49099f89a2098ebbcab451e9f2
MD5 69cc050484679e4283b71c0063a14232
BLAKE2b-256 8ab1b0929d081bb3c06a71102cb8f64e71c940399ff898e52ac59607b8b313aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.56-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1569488f921298b17691a5d968c1a73d080cc0a88272492f7cfea4ade0ef31b7
MD5 e60a10770552041efa1982a2260be12b
BLAKE2b-256 916388eb55f354fbf50aa199ec895ace5bfaf6197684f2fe45460f7c6e9419c7

See more details on using hashes here.

File details

Details for the file passagemath_palp-10.4.56-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_palp-10.4.56-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 583320a53e9471529eb51f7568ee32ff7577a75eb1698038bf51065b62a881b2
MD5 08afcc71acd54bdf7de3b887545c6395
BLAKE2b-256 749cf6ef0c7e95a04143be5ebc45cee92f97d2d4c6f9d63294c9e7a99728ce6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.56-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 672feb501df6710c22752fd7ebe76a2a97c39606e0620b03def61b197c043a12
MD5 d6c269710cabadee222c462ca0af9ce1
BLAKE2b-256 1e3c874515dfdbca04c8c4536ccdc088cbf949684f4790986b6ebf059689230c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.56-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 843a9459ac69b6d978566cc95d644273b57a0585828ecac9cc24f5c135576dab
MD5 b07bf5e499395235d93642405186ac4a
BLAKE2b-256 3e96229fa39b21a27722455b73ff67bf07b47b867c4fe8355445edf261f434c3

See more details on using hashes here.

File details

Details for the file passagemath_palp-10.4.56-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_palp-10.4.56-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 92678a7a24abafc3b2ad692c1d1712d96cdc77ed784ca0f9a439c03e96cb3b2c
MD5 828a242426fb6677003db143e4c8f2af
BLAKE2b-256 b1061356c0a2bb6dbc99c61d7383f52ade9adb68697198b4b71bce0931456fe4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.56-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a5b90dbc1d0063219f7e8d02056386f3939ac9ffc9b6cf7069bac42855cb1c3f
MD5 c194d2e69b94ca73381c8d2303fa7888
BLAKE2b-256 d3b5a0461334e1fe6cdce3ad2d8574f2475a5df24adf965066211dc5fe53e017

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.56-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 bdd6d9316e3c125b9df8f670b08222bbcc2d01e1ee75b5c8e1cda06acbc3dd53
MD5 92aa9665ca969c9b4eca1d9283ff4031
BLAKE2b-256 fe7def7a4f6025217254d92900bea49beeafb45be153c7ac9c325c444da38619

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