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

Commit

Permalink
Add outside_corners to SkewPartition
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorkarn committed Aug 5, 2022
1 parent f60a777 commit b10eb7f
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion src/sage/combinat/skew_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]>,
Expand Down Expand Up @@ -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::
Expand Down Expand Up @@ -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::
Expand Down

0 comments on commit b10eb7f

Please sign in to comment.