progressing on partitions

This commit is contained in:
2021-05-21 14:09:19 +02:00
parent 4be6df3317
commit 88628fb306
3 changed files with 192 additions and 16 deletions

24
t.cc
View File

@@ -68,6 +68,17 @@ for(int i=0; i<4; ++i)
}
}
void pprintme(const Partition<int> &p)
{
cout<<p;
Partition<int> q=p.adjoint();
cout<<"IR dim "<<p.Sn_irrep_dim()<<endl;
cout <<q;
CompressedPartition qc(q);
cout<<"Class size "<<qc.Sn_class_size()<<endl;
}
int main()
{
@@ -2085,7 +2096,7 @@ cout <<p;
}while(p.next());
}
if(1)
if(0)
{
int n;
cin >>n;
@@ -2094,4 +2105,15 @@ int tot=p.generate_all_lex(printme);
cout <<"generated "<<tot<<endl;
}
if(1)
{
int n;
cin >>n;
Partition<int> p(n);
int tot=p.generate_all(pprintme,0);
cout <<"generated "<<tot<<endl;
}
}