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

Uploaded Source

Built Distributions

passagemath_palp-10.4.57-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.57-cp312-cp312-macosx_14_0_arm64.whl (4.9 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_palp-10.4.57-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.57-cp311-cp311-macosx_14_0_arm64.whl (4.9 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_palp-10.4.57-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.57-cp310-cp310-macosx_14_0_arm64.whl (4.9 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_palp-10.4.57-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.57-cp39-cp39-macosx_14_0_arm64.whl (4.9 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: passagemath_palp-10.4.57.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.57.tar.gz
Algorithm Hash digest
SHA256 ac4de4b7100d77d6724b26878abe3aa6a2aaf6057750af8be3935c5256cdeb16
MD5 3ac0a40999acf8f2d72808fafbab29f8
BLAKE2b-256 8130b3d9f35947945eef15bd68fe46246d57914ed2240c9b0f2e355e33c0a12d

See more details on using hashes here.

File details

Details for the file passagemath_palp-10.4.57-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.57-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 820aa9d5059072eda999265e365574320b15e2a93bedfeec0baa6f79bb4e5b84
MD5 27d7bcdfd16a277ec9389c3f1c9e3964
BLAKE2b-256 904fe944842a59bc44a1a45fa66fc7113ca25ca1dbe5b8c92f807421c114e919

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.57-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 43cab7722113a740715f07bb8cff4684d6ce7c7098395c4d9d2ad39fe0b4afd6
MD5 22990da26693db0c2a7c4f11ca68606e
BLAKE2b-256 38ef68d11ebebd1c431ec77f1d6269aa71a69d1f9327910787bc641b0e8d58a8

See more details on using hashes here.

File details

Details for the file passagemath_palp-10.4.57-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.57-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 408b4d936970b2fb97c82b9868402a9056b84f8b9f9818fb36bdb03f36a901ec
MD5 3637d8cfc5096e0d09cee9dce1e61e81
BLAKE2b-256 54b6baf21a2225cb47459c0d0e0255da95c39f9b82182a77cfc728de1ad9f81a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.57-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a5bad00ea64bae1f0bd5911ac2713cddf630802e82d5a206a43027d04066935b
MD5 89d2293406be7baf8a9802cd13a2e62c
BLAKE2b-256 68ea451258bae07a98502f153940cef3e73492be73c5f0c1b6eb317c02c76585

See more details on using hashes here.

File details

Details for the file passagemath_palp-10.4.57-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.57-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 36f7654fe6b4dd18611e302c44c01c5a3f9e317e8d466d8fadf3ec4324e38906
MD5 e855f2fa61266f7edb48c80f605ca601
BLAKE2b-256 15c4a8198ebf2fb8395a31b6664576c3c0c618191467faa2b36ecf4a28c15660

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.57-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2dee427e7dd18ce3f7840bbae1347d62826182403e5932e35a44b7a8e4c2e6d0
MD5 c00e0aec275324cf1fa54254d835cfb2
BLAKE2b-256 ab95152e0519a9ac0942910276d7e951e43fb487c0d831fe41251e16076aae61

See more details on using hashes here.

File details

Details for the file passagemath_palp-10.4.57-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.57-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51ccdb72ca8fa0c061dfa52ee5487f30038707427f88ae93a39e788d63d8e4ae
MD5 b6c369c721cda5561ddd7dfd60e84b69
BLAKE2b-256 79865595d6f2a75e66d0b562ba465690866a3ed385dcb3afc5008851ae73199a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.57-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 71388cd4824120dde79007d014e10388f7a66f8e6373862bbdf1060f4cc9ae67
MD5 d8f6c1bffff8b95103942b13d716d36d
BLAKE2b-256 83bee82f2e7b9b043a619ccfc267b08dade25477725def18b75d7866c30156ad

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