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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_palp-10.4.65-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.65.tar.gz.

File metadata

  • Download URL: passagemath_palp-10.4.65.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.65.tar.gz
Algorithm Hash digest
SHA256 b4634d71d60af249b770caaf3e4cb327520539d9d5cdfe77da3dce1f07771083
MD5 527ba396ec421d2fc277efd97d1674f7
BLAKE2b-256 31cee28d74fb4bc75b3ba597e93153b964d3fbd3274f7625adf56feb0587a5a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ea88a743a5146345d189f9639e06d30723b53962f93f7ea0f0829593a3d0e100
MD5 02fd34c0899ee9534813e26dddbce459
BLAKE2b-256 3af8e9b091c53c49fe51b209e22ebb25d1b20f7f08c1ead89dfa729bcf9d5c41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8494e853b59e855d1e018cd7a400f1fb68cfd1aaa05fd73509fb874ca916281f
MD5 98da34199e0cb70252da8ec8a2891de6
BLAKE2b-256 881241b3d6e34fb2101109c760d8377c1e13377093c04cf9e8efe276b9cdf531

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5c2193babfdbca4c113d048a292ccfaa54e39c3462448ad4cb918d44cf080fe5
MD5 3c2c52e841a1f82d0b19f46ecd887c91
BLAKE2b-256 a6dd8c0d0805775e7022e05534de11e744b02093c50434e0dd25ed8674ad2765

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c909a59a99bb13653a2674bce58a0e9a97f07852279b81ebdc58c42fd4e47cee
MD5 ec89941a73ba433f1824139c5da6502e
BLAKE2b-256 f02fff092bb560a80e7d7f4fb25b35f6cf61d914e36b291eabbdd95e00e53ee7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8363931084cfb612ba2bc5db7cc5a6425d13e62f640678655d038d293940c0eb
MD5 ac0f5d23837ea00a9fd29f08d95167cd
BLAKE2b-256 376a8e0d0c531e746432229095115bc23fc974aec439f9ce07d48cfcda4c3297

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2b80a863bcc906e2f5e2fe94b0bbcee72100c8a83dc0655c9dc03884e9a2022f
MD5 ab6320534286c5cd80a7fb6ad8ccd23b
BLAKE2b-256 f82848369681d262a2d9654184c6df9f91597bce022a55e5dac41e81944b5090

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 822079fe0b1011f881349d1dd8f44e5bafa0c1a63e10c049676b7fde23c6b6cc
MD5 995fcffde461fd96c265e9b77a88dabc
BLAKE2b-256 1d91f4197931a951d6ce9a37a16157e5b969cdcdb8ecb8c1326eb4c3dea3fd56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 12fdcefece8e5dac7f7475458c7713aba75ae68c18d8fc965c6b4e5d3d2cc7c6
MD5 50e5d2077bed8c5ac509d565234c35ec
BLAKE2b-256 c16356a26059487fb4cc59ed73c22c58449926195586874304d62b31adf2ccad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7b8562691df4a2ad263964a10b40832b00f7803fa84c3877aa85d00a31cec914
MD5 89b940e65193a4d4d5037c748e6f9f91
BLAKE2b-256 4f210cd002ec07dd59d6784e2e3cb23323efcb284bf315c0caeeaa56f2e95e00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 41c3f665ef896b21a4d979a1575b5a0b437ec0ef71e5cdb9dc93e4df6e06d3d2
MD5 050c836357cf097b5dc76451dd87e115
BLAKE2b-256 500c8f66c37a706b3544166082a4e698b57214efee39723a7842ddb1ed5788f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 617ac1d04be9a4e95e93eff5c339fc550d83c95404766d3c978117a90fe540f7
MD5 e261b7b95a65d14d1c3e536e3b92cc43
BLAKE2b-256 6107d63edd8e32554978e5337d5231a05c902b2bb4b5bd685243feab8483b361

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_palp-10.4.65-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f0617affca5a06722cc8f7043cc866bb4a77e5cf93977fe24fd6aca8e169379c
MD5 1412711532b1ee97a961f39706d53148
BLAKE2b-256 9b99e440a25439cd1a1c7500899eaf92f52194dd6db8fdd41af635d8aa9d8add

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