progressing on partitions
This commit is contained in:
24
t.cc
24
t.cc
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user