Coder Social home page Coder Social logo

libsemigroups / libsemigroups-python-bindings Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 4.0 161 KB

Python bindings for the C++ library libsemigroups

License: GNU General Public License v3.0

Jupyter Notebook 1.39% Python 96.95% C++ 1.23% Makefile 0.42%
semigroup monoid python-bindings libsemigroups-library congruence anaconda

libsemigroups-python-bindings's Introduction

Python bindings for libsemigroups

This is a basic package providing python bindings for the libsemigroups C++ library.

libsemigroups is a C++ library for semigroups and monoids; it is partly based on Algorithms for computing finite semigroups, Expository Slides, and Semigroupe 2.01 Jean-Eric Pin.

Basic instructions

Installing with conda

This installation method assumes that you have anaconda or miniconda installed. See the getting started and miniconda download page on the conda website.

Activate the conda-forge package repository:

conda config --add channels conda-forge

Install the Python bindings:

conda install libsemigroups-python-bindings

From the source

Install some dependencies:

sudo -H pip install cython cysignals --upgrade

Install the libsemigroups C++ library, e.g. from sources:

git clone https://github.com/james-d-mitchell/libsemigroups
cd libsemigroups
./autogen.sh ; ./configure ; make ; sudo make install
cd ..

Install the python bindings:

git clone https://github.com/james-d-mitchell/libsemigroups-python-bindings
cd libsemigroups-python-bindings
pip install --user . --upgrade
cd ..

Try it out:

python

>>> from semigroups import Semigroup, Transformation
>>> S = Semigroup(Transformation([1, 1, 4, 5, 4, 5]),
...               Transformation([2, 3, 2, 3, 5, 5]))
>>> S.size()
5
>>> quit()

Issues

If you find any problems with libsemigroups-python-bindings or have any suggestions for features that you'd like to see please use the issue tracker.

Documentation

The documentation is generated using Sphinx and is available here.

libsemigroups-python-bindings's People

Contributors

james-d-mitchell avatar le27 avatar mtorpey avatar nthiery avatar wilfwilson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.