def test_transpose(): mu = () assert Partition.transpose(mu) == mu mu = (1, ) assert Partition.transpose(mu) == mu mu = (2, ) assert Partition.transpose(mu) == (1, 1) mu = (5, 3, 3, 2, 2, 1, 1, 1, 1) assert Partition.transpose(mu) == (9, 5, 3, 1, 1)
def fpf_involution_shape(self): assert self.is_fpf_involution() mu = Partition.sort(self.fpf_involution_code(), trim=True) return Partition.transpose(mu)
def omega_schur_expansion(cls, f): return Vector({ Partition.transpose(mu): coeff for mu, coeff in cls.schur_expansion(f).items() })