This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add outside_corners to SkewPartition
- Loading branch information
1 parent
f60a777
commit b10eb7f
Showing
1 changed file
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,6 +126,7 @@ | |
- Mike Hansen: Initial version | ||
- Travis Scrimshaw (2013-02-11): Factored out ``CombinatorialClass`` | ||
- Trevor K. Karn (2022-08-03): Add ``outside_corners`` | ||
""" | ||
#***************************************************************************** | ||
# Copyright (C) 2007 Mike Hansen <[email protected]>, | ||
|
@@ -739,7 +740,14 @@ def conjugate(self): | |
|
||
def outer_corners(self): | ||
""" | ||
Return a list of the outer corners of ``self``. | ||
Return a list of the outer corners of ``self``. These are corners | ||
which are contained inside of the shape. For the corners which are | ||
outside of the shape, use :meth:`outside_corners`. | ||
.. SEEALSO:: | ||
- :meth:`sage.combinat.skew_partition.SkewPartition.outside_corners` | ||
- :meth:`sage.combinat.partition.Partition.outside_corners` | ||
EXAMPLES:: | ||
|
@@ -1209,6 +1217,32 @@ def jacobi_trudi(self): | |
m.append(row) | ||
return H(m) | ||
|
||
def outside_corners(self): | ||
r""" | ||
Return the outside corners of ``self``. | ||
The outside corners are corners which are outside of the shape. This | ||
should not be confused with :meth:`outer_corners` which consists of | ||
corners inside the shape. It returns a result analogous to the | ||
``.outside_corners()`` method on (non-skew) ``Partitions``. | ||
.. SEEALSO:: | ||
- :meth:`sage.combinat.skew_partition.SkewPartition.outer_corners` | ||
- :meth:`sage.combinat.partition.Partition.outside_corners` | ||
EXAMPLES:: | ||
sage: mu = SkewPartition([[3,2,1],[2,1]]) | ||
sage: mu.pp() | ||
* | ||
* | ||
* | ||
sage: mu.outside_corners() | ||
[(0, 3), (1, 2), (2, 1), (3, 0)] | ||
""" | ||
return self.outer().outside_corners() | ||
|
||
def row_lengths_aux(skp): | ||
""" | ||
EXAMPLES:: | ||
|