Skip to main content

Fast Boltzmann random generators for SageMath

Project description

Usain Boltz

Usain Boltz is a Python/Cython library meant to automate the random generation of tree-like structures.

The library was primarily designed to be used with the Sagemath mathematics software system but Sagemath is no longer a dependency and the library is now perfectly usable both within and without a Sagemath environment.

Install

Via pip (recommended)

Usain Boltz is available on PyPI, just type:

pip3 install usainboltz

From source

System requirements:

  • One of our dependencies requires cmake to build. It is installed by default on most distributions but if you encounter build errors with osqp that may be the reason.

  • You also need to have cython installed on your system to be able to build Usain Boltz.

Build, test and install:

  • Run make build to build the C and Cython extensions
  • Run make test to run the doctests
  • Run python3 setup.py install [--user] to install in your current python environment

Sagemath

Both installation methods make Usain Boltz available to Sagemath

Documentation

Provided you have sphinx installed, you can build the documentation with make doc.

Examples and demo

Some examples are available in the examples and sage_examples modules in the documentation. In particular, the sage_examples module illustrates how Usain Boltz can be used to generate sage objects.

A sage notebook is available in the demo/ folder which shows how Usain Boltz can be used to generate various objects related to binary trees from the same grammar and generator.

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

usainboltz-0.2.1.tar.gz (52.2 kB view details)

Uploaded Source

Built Distributions

usainboltz-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

usainboltz-0.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

usainboltz-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

File details

Details for the file usainboltz-0.2.1.tar.gz.

File metadata

  • Download URL: usainboltz-0.2.1.tar.gz
  • Upload date:
  • Size: 52.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for usainboltz-0.2.1.tar.gz
Algorithm Hash digest
SHA256 68a4aabf38d584fb9c96e8f1ea0c9e770c131a71610c5ee8ced81713f8472d17
MD5 dfc9dcc6293cc72f5c679c9936d4d537
BLAKE2b-256 b0a8da91a6f708bf38b3468472ea22f3f41e546bd1228616d6dbaadb8f0f2ff7

See more details on using hashes here.

File details

Details for the file usainboltz-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for usainboltz-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 30ae0e75f19ed8bb7f59e7b87b6bd7fce30131713bb9b1ef8922bd9b1d4333ce
MD5 ea33aba52461a77f68df544640297117
BLAKE2b-256 a1e55bd6ec8447798f3688e43105879a50ecdf04cc884452f54c23f88a99393d

See more details on using hashes here.

File details

Details for the file usainboltz-0.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for usainboltz-0.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ef17358086f0204dcd60cbdce64b67ead5346025dc63181e29f3142d0d3c88a2
MD5 c9ffd2b2c53281519f17feb8db8f0dc4
BLAKE2b-256 be9ce8f8bfc177670fd87faa42fc3c1bb9c02cc8c3fda315d0995614fbdb839b

See more details on using hashes here.

File details

Details for the file usainboltz-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for usainboltz-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c78a254bedc7289bc8e8edc1e1376ea0d945c78f5011d1536948e0702cf05c0a
MD5 24e5d7a67f302b217d802f10486757d0
BLAKE2b-256 364fc913f7257d0bee793178b3f4c5b78318df66784dda9e0d05667bce950ee9

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