Fast Boltzmann random generators for SageMath
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.
Via pip (recommended)
Usain Boltz is available on PyPI, just type:
pip3 install usainboltz
One of our dependencies requires
cmaketo build. It is installed by default on most distributions but if you encounter build errors with
osqpthat may be the reason.
You also need to have
cythoninstalled on your system to be able to build Usain Boltz.
Build, test and install:
make buildto build the
make testto run the doctests
python3 setup.py install [--user]to install in your current python environment
Both installation methods make Usain Boltz available to Sagemath
Provided you have
sphinx installed, you can
build the documentation with
Examples and demo
Some examples are available in the
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for usainboltz-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Hashes for usainboltz-0.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Hashes for usainboltz-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl