Skip to content

Commit

Permalink
Bipart hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Aug 1, 2024
1 parent 248acbe commit 952b6e0
Show file tree
Hide file tree
Showing 19 changed files with 788 additions and 652 deletions.
15 changes: 15 additions & 0 deletions docs/source/data-structures/elements/bipart-helpers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.. Copyright (c) 2024 J. D. Mitchell
Distributed under the terms of the GPL license version 3.
The full license is in the file LICENSE, distributed with this software.
Bipartition helpers
===================

This page contains the documentation for various helper functions for
manipulating bipartitions.

.. automodule:: libsemigroups_pybind11.bipartition
:members:
:imported-members:
21 changes: 20 additions & 1 deletion docs/source/data-structures/elements/bipart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,23 @@
Bipartition
===========

TODO
This page contains an overview of the functionality in
``libsemigroups_pybind11`` for bipartitions and blocks.

There are a number of functions for computing things about
:py:class:`Bipartition` objects detailed below.

.. toctree::
:maxdepth: 1

bipart-helpers

Full API
--------

.. autoclass:: Bipartition
:class-doc-from: class
:members:
:inherited-members:
:special-members: __init__

15 changes: 15 additions & 0 deletions docs/source/data-structures/elements/blocks-helpers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.. Copyright (c) 2024 J. D. Mitchell
Distributed under the terms of the GPL license version 3.
The full license is in the file LICENSE, distributed with this software.
Blocks helpers
==============

This page contains the documentation for various helper functions for
manipulating blocks.

.. automodule:: libsemigroups_pybind11.blocks
:members:
:imported-members:
46 changes: 46 additions & 0 deletions docs/source/data-structures/elements/blocks.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.. Copyright (c) 2021-2024 J. D. Mitchell
Distributed under the terms of the GPL license version 3.
The full license is in the file LICENSE, distributed with this software.
.. currentmodule:: _libsemigroups_pybind11

Blocks
======

This page contains an overview of the functionality in
``libsemigroups_pybind11`` for blocks. See also :any:`Bipartition` for more
details and context.

There are a number of functions for computing things about
:py:class:`Blocks` objects detailed below.

.. toctree::
:maxdepth: 1

blocks-helpers

Contents
--------

.. autosummary::
:nosignatures:

~Blocks
Blocks.copy
Blocks.degree
Blocks.is_transverse_block
Blocks.iterator
Blocks.lookup
Blocks.number_of_blocks
Blocks.rank

Full API
--------

.. autoclass:: Blocks
:class-doc-from: class
:members:
:inherited-members:
:special-members: __init__
1 change: 1 addition & 0 deletions docs/source/data-structures/elements/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This page contains an overview summary of the functionality in
:maxdepth: 1

bipart
blocks
matrix/index
pperm
perm
Expand Down
2 changes: 2 additions & 0 deletions libsemigroups_pybind11/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
BMat8,
side,
AhoCorasick,
Bipartition,
Blocks,
)
except ModuleNotFoundError as e:
raise ModuleNotFoundError(
Expand Down
19 changes: 19 additions & 0 deletions libsemigroups_pybind11/bipartition.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-

# Copyright (c) 2024 J. D. Mitchell
#
# Distributed under the terms of the GPL license version 3.
#
# The full license is in the file LICENSE, distributed with this software.

# pylint: disable=no-name-in-module, invalid-name, unused-import, fixme

"""
This package provides the user-facing python part of libsemigroups_pybind11 for
the libsemigroups::bipartition namespace from libsemigroups.
"""

from _libsemigroups_pybind11 import (
bipartition_underlying_partition as underlying_partition,
bipartition_one as one,
)
18 changes: 18 additions & 0 deletions libsemigroups_pybind11/blocks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-

# Copyright (c) 2024 J. D. Mitchell
#
# Distributed under the terms of the GPL license version 3.
#
# The full license is in the file LICENSE, distributed with this software.

# pylint: disable=no-name-in-module, invalid-name, unused-import, fixme

"""
This package provides the user-facing python part of ``libsemigroups_pybind11`` for
the ``libsemigroups::blocks`` namespace from ``libsemigroups``.
"""

from _libsemigroups_pybind11 import (
blocks_underlying_partition as underlying_partition,
)
2 changes: 1 addition & 1 deletion libsemigroups_pybind11/fpsemigroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""

from _libsemigroups_pybind11 import (
author,
# author,
symmetric_group,
alternating_group,
full_transformation_monoid,
Expand Down
Loading

0 comments on commit 952b6e0

Please sign in to comment.