Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge commit 'ca293e3' into public/25462
Browse files Browse the repository at this point in the history
* commit 'ca293e3':
  avoid itertools and modify docstring
  adress reviewer's comments: new method number_of_blocks and deprecation of n, partition_diagrams now returns iterator
  remove unused imports
  fix (and partially improve) tests in diagram algebras
  use the fast iterators and correct check
  revert a call to Set which works after #25496
  remove an expensive call to Set, adapt some doctests
  fix more doctests
  adapt doctests
  add faster iterator for set partitions with given number of blocks
  alternative, non-recursive iterator
  add faster iterator
  switch the internal representation of the blocks from Set to frozenset
  • Loading branch information
zabrocki committed Jul 6, 2018
2 parents 6bccacc + ca293e3 commit 594ace9
Show file tree
Hide file tree
Showing 11 changed files with 399 additions and 223 deletions.
10 changes: 5 additions & 5 deletions src/sage/coding/code_constructions.py
Expand Up @@ -104,11 +104,11 @@ def _is_a_splitting(S1, S2, n, return_automorphism=False):
sage: for P in SetPartitions(6,[3,3]):
....: res,aut= _is_a_splitting(P[0],P[1],7,return_automorphism=True)
....: if res:
....: print((aut, P[0], P[1]))
(6, {1, 2, 3}, {4, 5, 6})
(3, {1, 2, 4}, {3, 5, 6})
(6, {1, 3, 5}, {2, 4, 6})
(6, {1, 4, 5}, {2, 3, 6})
....: print((aut, P))
(6, {{1, 2, 3}, {4, 5, 6}})
(3, {{1, 2, 4}, {3, 5, 6}})
(6, {{1, 3, 5}, {2, 4, 6}})
(6, {{1, 4, 5}, {2, 3, 6}})
We illustrate now how to find idempotents in quotient rings::
Expand Down

0 comments on commit 594ace9

Please sign in to comment.