Skip to main content

passagemath: Triangulations of point configurations and oriented matroids with TOPCOM

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 distribution passagemath-topcom provides an interface to TOPCOM, a package for computing triangulations of point configurations and oriented matroids by Jörg Rambau.

What is included

  • Raw access to all executables from Python using sage.features.topcom

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

Examples

Using TOPCOM programs on the command line:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-topcom" sage -sh -c 'cube 4 | points2facets'
Evaluating Commandline Options ...
... done.
16,5:
{
{0,1,2,3,4,5,6,7}
{0,1,2,3,8,9,10,11}
{0,1,4,5,8,9,12,13}
{0,2,4,6,8,10,12,14}
{1,3,5,7,9,11,13,15}
{2,3,6,7,10,11,14,15}
{4,5,6,7,12,13,14,15}
{8,9,10,11,12,13,14,15}
}

Finding the installation location of a TOPCOM program:

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

In [1]: from sage.features.topcom import TOPCOMExecutable

In [2]: TOPCOMExecutable('points2allfinetriangs').absolute_filename()
Out[2]: '/Users/mkoeppe/.local/pipx/.cache/cef1668ecbdb8cf/lib/python3.11/site-packages/sage_wheels/bin/points2allfinetriangs'

Using sage.geometry.triangulation.point_configuration:

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

In [1]: from sage.all__sagemath_topcom import *

In [2]: p = PointConfiguration([[-1,QQ('-5/9')], [0,QQ('10/9')], [1,QQ('-5/9')], [-2,QQ('-10/9')], [0,QQ('20/9')], [2,QQ('-10/9')]])

In [3]: PointConfiguration.set_engine('topcom')

In [4]: p_regular = p.restrict_to_regular_triangulations(True)

In [5]: regular = p_regular.triangulations_list()

In [6]: len(regular)
Out[6]: 16

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

Uploaded Source

Built Distributions

passagemath_topcom-10.4.58-cp312-cp312-macosx_14_0_arm64.whl (14.7 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_topcom-10.4.58-cp312-cp312-macosx_13_0_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

passagemath_topcom-10.4.58-cp311-cp311-macosx_14_0_arm64.whl (14.7 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_topcom-10.4.58-cp311-cp311-macosx_13_0_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

passagemath_topcom-10.4.58-cp310-cp310-macosx_14_0_arm64.whl (14.7 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_topcom-10.4.58-cp310-cp310-macosx_13_0_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_topcom-10.4.58-cp39-cp39-macosx_14_0_arm64.whl (14.7 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_topcom-10.4.58-cp39-cp39-macosx_13_0_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

Details for the file passagemath_topcom-10.4.58.tar.gz.

File metadata

  • Download URL: passagemath_topcom-10.4.58.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_topcom-10.4.58.tar.gz
Algorithm Hash digest
SHA256 8d8b7d2458e1d400267f578038750185881ba18c106d1733b695f0b0b6a04dd0
MD5 6214a6a15b8f365741e2ab6b69e94395
BLAKE2b-256 fcddff02971db5a30ac2a7f1e4337360d9b848c2682b21b9ca13eaf57e03f05b

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.4.58-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.4.58-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 674489752af496bd0ac31428f97d7b95241dab2d3d12ec0f420134263d70ac4c
MD5 9fe5ec2f5825d5a63118aed359b71a95
BLAKE2b-256 93d1182fb61209b84a9de31672116065f2b19bc2e947d850321b0c22cb7dd9c8

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.4.58-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.4.58-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8770941ae3648625e6834fee8d660b91788e4fda894bce03486a43caad383eee
MD5 7970fa7664c3ea2191d11fec35338bb1
BLAKE2b-256 4d053f608503213c0288f907c1e4d6f10c1c4293966deb8e79e599d397fd1429

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.4.58-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.4.58-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3b9231c790c6dfef37b4e0b6866f03b359dcea8751fcc2d1df69b31ac22d3648
MD5 41ef70c80a286b61f93fe4b32ac7a46e
BLAKE2b-256 e7f9e4f67e843b23f24f177501663125f5eb94056e6b33e2cbb3ac6722726520

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.4.58-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.4.58-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d9206df131397b9670ccfb10ec989e42a8bb2eb4f9c4143355e87ca732b58f17
MD5 c034a4dcab25d7cd1208503c0931baad
BLAKE2b-256 55c964485f6d877bc4a7deb344286082a0559606999cde4a3b6ed1365bd5a731

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.4.58-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.4.58-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 54c8164866798c372572ff3b33557636e2bd9550c4a7717fb69089cf0c793205
MD5 b58549e4b92c58aec7e5391762ede8f1
BLAKE2b-256 b0548102012d66a7383428ed09ab311f38bc74f725ec40551bdaed84a292006b

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.4.58-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.4.58-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 106bfc0484cb6bb52e3f67374becee4fba717969ba4afe75960e65ebdcc7d0e5
MD5 e66702f893e8cb07aba3b8fe40c6f7e5
BLAKE2b-256 88e92400904d4afb6dc4ede4d41617915de2179f0df947bcd04b8d71ca138d58

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.4.58-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.4.58-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 271982116139a5e0a3464d8519d3a9a1e87b28352dae2eff71484b1a648df0bf
MD5 2e86b3f1c8db3bf2e4f838d090af63f3
BLAKE2b-256 b9593bc11d8355b1d77ab3af96338b44012e7049733574bf2a432d62fff717d3

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.4.58-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.4.58-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4d83557c1f444990b44d8585c368c6629d2760f9f39dd24702b65b33fe5b67d9
MD5 bc8b5e4583c6a384127745d735a5fdce
BLAKE2b-256 0422e561978f8219547e3224eb0578a374c7024a8671556b7861da21a35e37c4

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