working on permutation

This commit is contained in:
2024-01-16 22:03:46 +01:00
parent 41e9c359d5
commit 1e83fcfaf9
4 changed files with 126 additions and 5 deletions

7
t.cc
View File

@@ -2218,8 +2218,11 @@ NRPerm<int> p(n);
NRVec_from1<int> classes; cin>>classes;
if(classes.size()!=p.size()) laerror("sizes do not match");
PermutationAlgebra<int,int> tot = p.list_restricted(classes,-2);
cout <<"generated\n"<<tot<<endl;
cout <<"ALL\n"<<p.list_all();
tot.copyonwrite();
cout <<"generated " <<tot.size()<<"\n"<<tot<<endl;
PermutationAlgebra<int,int> all= p.list_all();
all.sort();
cout <<"ALL\n"<<all;
}