Skip to content

Commit 82348c8

Browse files
codexjames-d-mitchell
authored andcommitted
order: add rev_* orders
1 parent 492dc1f commit 82348c8

4 files changed

Lines changed: 763 additions & 2 deletions

File tree

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,26 @@ Contents
2323
.. autosummary::
2424
:signatures: short
2525

26+
len_wt_lex_cmp
2627
lenlex_cmp
2728
lex_cmp
2829
lexicographical_compare
2930
recursive_path_compare
31+
rev_len_wt_lex_cmp
32+
rev_lenlex_cmp
33+
rev_lex_cmp
3034
rev_rpo_cmp
35+
rev_wr_cmp
36+
rev_wt_lenlex_cmp
37+
rev_wt_lex_cmp
3138
rpo_cmp
3239
shortlex_compare
3340

3441
Full API
3542
--------
3643

44+
.. autofunction:: len_wt_lex_cmp
45+
3746
.. autofunction:: lenlex_cmp
3847

3948
.. autofunction:: lex_cmp
@@ -42,8 +51,20 @@ Full API
4251

4352
.. autofunction:: recursive_path_compare
4453

54+
.. autofunction:: rev_len_wt_lex_cmp
55+
56+
.. autofunction:: rev_lenlex_cmp
57+
58+
.. autofunction:: rev_lex_cmp
59+
4560
.. autofunction:: rev_rpo_cmp
4661

62+
.. autofunction:: rev_wr_cmp
63+
64+
.. autofunction:: rev_wt_lenlex_cmp
65+
66+
.. autofunction:: rev_wt_lex_cmp
67+
4768
.. autofunction:: rpo_cmp
4869

4970
.. autofunction:: shortlex_compare

src/libsemigroups_pybind11/__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
delta,
105105
error_message_with_prefix,
106106
freeband_equal_to,
107+
len_wt_lex_cmp as _len_wt_lex_cmp,
107108
lenlex_cmp as _lenlex_cmp,
108109
lex_cmp as _lex_cmp,
109110
lexicographical_compare,
@@ -112,7 +113,13 @@
112113
random_strings,
113114
random_word,
114115
recursive_path_compare,
116+
rev_len_wt_lex_cmp as _rev_len_wt_lex_cmp,
117+
rev_lenlex_cmp as _rev_lenlex_cmp,
118+
rev_lex_cmp as _rev_lex_cmp,
115119
rev_rpo_cmp as _rev_rpo_cmp,
120+
rev_wr_cmp as _rev_wr_cmp,
121+
rev_wt_lenlex_cmp as _rev_wt_lenlex_cmp,
122+
rev_wt_lex_cmp as _rev_wt_lex_cmp,
116123
rpo_cmp as _rpo_cmp,
117124
shortlex_compare,
118125
side,
@@ -125,9 +132,16 @@
125132
) from e
126133

127134

135+
len_wt_lex_cmp = _wrap_cxx_free_fn(_len_wt_lex_cmp)
128136
lenlex_cmp = _wrap_cxx_free_fn(_lenlex_cmp)
129137
lex_cmp = _wrap_cxx_free_fn(_lex_cmp)
138+
rev_len_wt_lex_cmp = _wrap_cxx_free_fn(_rev_len_wt_lex_cmp)
139+
rev_lenlex_cmp = _wrap_cxx_free_fn(_rev_lenlex_cmp)
140+
rev_lex_cmp = _wrap_cxx_free_fn(_rev_lex_cmp)
130141
rev_rpo_cmp = _wrap_cxx_free_fn(_rev_rpo_cmp)
142+
rev_wr_cmp = _wrap_cxx_free_fn(_rev_wr_cmp)
143+
rev_wt_lenlex_cmp = _wrap_cxx_free_fn(_rev_wt_lenlex_cmp)
144+
rev_wt_lex_cmp = _wrap_cxx_free_fn(_rev_wt_lex_cmp)
131145
rpo_cmp = _wrap_cxx_free_fn(_rpo_cmp)
132146

133147

@@ -169,6 +183,7 @@
169183
"delta",
170184
"error_message_with_prefix",
171185
"freeband_equal_to",
186+
"len_wt_lex_cmp",
172187
"lenlex_cmp",
173188
"lex_cmp",
174189
"lexicographical_compare",
@@ -177,7 +192,13 @@
177192
"random_strings",
178193
"random_word",
179194
"recursive_path_compare",
195+
"rev_len_wt_lex_cmp",
196+
"rev_lenlex_cmp",
197+
"rev_lex_cmp",
180198
"rev_rpo_cmp",
199+
"rev_wr_cmp",
200+
"rev_wt_lenlex_cmp",
201+
"rev_wt_lex_cmp",
181202
"rpo_cmp",
182203
"shortlex_compare",
183204
"side",

0 commit comments

Comments
 (0)