Skip to content

Commit 04d35a2

Browse files
Normalise the elements doc
1 parent 349b4ae commit 04d35a2

File tree

23 files changed

+189
-189
lines changed

23 files changed

+189
-189
lines changed

docs/source/data-structures/elements/bipart.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
..
2+
Copyright (c) 2021-2024 J. D. Mitchell
3+
4+
Distributed under the terms of the GPL license version 3.
5+
6+
The full license is in the file LICENSE, distributed with this software.
7+
8+
.. currentmodule:: libsemigroups_pybind11
9+
10+
Bipartition
11+
===========
12+
13+
.. autoclass:: Bipartition
14+
:doc-only:
15+
:class-doc-from: class
16+
17+
Contents
18+
--------
19+
20+
.. autosummary::
21+
:signatures: short
22+
23+
~Bipartition
24+
Bipartition.copy
25+
Bipartition.degree
26+
Bipartition.is_transverse_block
27+
Bipartition.iterator
28+
Bipartition.left_blocks
29+
Bipartition.lookup
30+
Bipartition.number_of_blocks
31+
Bipartition.number_of_left_blocks
32+
Bipartition.number_of_right_blocks
33+
Bipartition.one
34+
Bipartition.rank
35+
Bipartition.right_blocks
36+
37+
Full API
38+
--------
39+
40+
.. autoclass:: Bipartition
41+
:members:
42+
:class-doc-from: init
43+
:inherited-members:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
..
2+
Copyright (c) 2025 Joseph Edwards
3+
4+
Distributed under the terms of the GPL license version 3.
5+
6+
The full license is in the file LICENSE, distributed with this software.
7+
8+
Bipartitions
9+
============
10+
11+
This page describes the functionality for bipartitions in
12+
``libsemigroups_pybind11``.
13+
14+
.. toctree::
15+
:maxdepth: 1
16+
17+
class
18+
helpers

docs/source/data-structures/elements/blocks.rst renamed to docs/source/data-structures/elements/blocks/class.rst

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,14 @@
55

66
The full license is in the file LICENSE, distributed with this software.
77

8-
.. currentmodule:: _libsemigroups_pybind11
8+
.. currentmodule:: libsemigroups_pybind11
99

1010
Blocks
1111
======
1212

13-
This page contains an overview of the functionality in
14-
``libsemigroups_pybind11`` for blocks. See also :any:`Bipartition` for more
15-
details and context.
16-
17-
There are a number of functions for computing things about :py:class:`Blocks`
18-
objects detailed below.
19-
20-
.. toctree::
21-
:maxdepth: 1
22-
23-
blocks-helpers
13+
.. autoclass:: Blocks
14+
:doc-only:
15+
:class-doc-from: class
2416

2517
Contents
2618
--------
@@ -41,7 +33,6 @@ Full API
4133
--------
4234

4335
.. autoclass:: Blocks
44-
:class-doc-from: class
4536
:members:
37+
:class-doc-from: init
4638
:inherited-members:
47-
:special-members: __init__
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
..
2+
Copyright (c) 2025 Joseph Edwards
3+
4+
Distributed under the terms of the GPL license version 3.
5+
6+
The full license is in the file LICENSE, distributed with this software.
7+
8+
Blocks
9+
======
10+
11+
This page describes the functionality for blocks in ``libsemigroups_pybind11``.
12+
13+
.. toctree::
14+
:maxdepth: 1
15+
16+
class
17+
helpers

docs/source/data-structures/elements/index.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ for defining elements of semigroups.
1414
.. toctree::
1515
:maxdepth: 1
1616

17-
bipart
18-
blocks
17+
bipart/index
18+
blocks/index
1919
matrix/index
20-
pperm
21-
perm
22-
pbr
23-
transf
20+
pbr/index
21+
transformations/index

docs/source/data-structures/elements/matrix/bmat8.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Contents
2121
:signatures: short
2222

2323
~BMat8
24+
BMat8.copy
25+
BMat8.degree
2426
BMat8.swap
2527
BMat8.to_int
2628

docs/source/data-structures/elements/matrix/index.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
Matrix
1111
======
1212

13-
It is possible to represent matrices over various semirings in
14-
``libsemigroups_pybind11``. The classes for matrices in
15-
``libsemigroups_pybind11`` are:
13+
This page describes the functionality for matrices over various semirings in
14+
``libsemigroups_pybind11``.
1615

1716
.. toctree::
1817
:maxdepth: 1
1918

2019
bmat8
20+
bmat8-helpers
2121
matrix
22+
matrix-helpers

docs/source/data-structures/elements/matrix/matrix.rst

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@ While :py:class:`Matrix` is not a class the objects returned by
2626
as if it was a class.
2727

2828
Some helper functions for :py:class:`Matrix` objects are documented in the
29-
submodule ``matrix``.
30-
31-
.. toctree::
32-
:maxdepth: 1
33-
34-
matrix-helpers
29+
submodule :any:`libsemigroups_pybind11.matrix`.
3530

3631
.. doctest::
3732

@@ -155,40 +150,6 @@ MatrixKind
155150
----------
156151

157152
.. autoclass:: MatrixKind
158-
:show-inheritance:
159-
160-
.. autoattribute:: Boolean
161-
162-
For matrices over the Boolean semiring.
163-
164-
.. autoattribute:: Integer
165-
166-
For matrices over the usual ring of integers.
167-
168-
.. autoattribute:: MaxPlus
169-
170-
For matrices over the max-plus semiring.
171-
172-
.. autoattribute:: MinPlus
173-
174-
For matrices over the min-plus semiring.
175-
176-
.. autoattribute:: ProjMaxPlus
177-
178-
For projective matrices over the max-plus semiring.
179-
180-
.. autoattribute:: MaxPlusTrunc
181-
182-
For matrices over the truncated max-plus semiring.
183-
184-
.. autoattribute:: MinPlusTrunc
185-
186-
For matrices over the truncated min-plus semiring.
187-
188-
.. autoattribute:: NTP
189-
190-
For matrices over the semiring of natural numbers quotiented by `t = t +
191-
p`.
192153

193154
..
194155
TODO later summary

docs/source/data-structures/elements/pbr.rst renamed to docs/source/data-structures/elements/pbr/class.rst

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,26 @@
1010
PBR
1111
===
1212

13-
This page contains an overview of the functionality in
14-
``libsemigroups_pybind11`` for partitioned binary relations (PBRs).
15-
16-
There are a number of functions for computing things about :py:class:`PBR`
17-
objects detailed below.
18-
19-
.. toctree::
20-
:maxdepth: 1
21-
22-
pbr-helpers
13+
.. autoclass:: PBR
14+
:doc-only:
15+
:class-doc-from: class
2316

2417
Contents
2518
--------
2619

2720
.. autosummary::
2821
:signatures: short
2922

23+
~PBR
3024
PBR.copy
3125
PBR.degree
3226
PBR.number_of_points
27+
PBR.product_inplace
3328

3429
Full API
3530
--------
3631

3732
.. autoclass:: PBR
38-
:class-doc-from: class
3933
:members:
34+
:class-doc-from: init
4035
:inherited-members:
41-
:special-members: __init__
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
..
2+
Copyright (c) 2025 Joseph Edwards
3+
4+
Distributed under the terms of the GPL license version 3.
5+
6+
The full license is in the file LICENSE, distributed with this software.
7+
8+
Partitioned binary relations (PBRs)
9+
===================================
10+
11+
This page describes the functionality for partitioned binary relations (PBRs) in
12+
``libsemigroups_pybind11``.
13+
14+
.. toctree::
15+
:maxdepth: 1
16+
17+
class
18+
helpers

docs/source/data-structures/elements/pperm.rst

Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
..
2+
Copyright (c) 2025 Joseph Edwards
3+
4+
Distributed under the terms of the GPL license version 3.
5+
6+
The full license is in the file LICENSE, distributed with this software.
7+
8+
Transformations
9+
===============
10+
11+
This page describes the functionality for various partial transformations in
12+
``libsemigroups_pybind11``.
13+
14+
.. toctree::
15+
:maxdepth: 1
16+
17+
perm
18+
pperm
19+
transf
20+
helpers

0 commit comments

Comments
 (0)