コード例 #1
0
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)
コード例 #2
0
 def fpf_involution_shape(self):
     assert self.is_fpf_involution()
     mu = Partition.sort(self.fpf_involution_code(), trim=True)
     return Partition.transpose(mu)
コード例 #3
0
 def omega_schur_expansion(cls, f):
     return Vector({
         Partition.transpose(mu): coeff
         for mu, coeff in cls.schur_expansion(f).items()
     })