apply_permutation_algebra tested

This commit is contained in:
Jiri Pittner 2025-10-17 16:04:59 +02:00
parent 08cdf7c971
commit cbb6f0116c

1
t.cc
View File

@ -3504,6 +3504,7 @@ indexclasses[0].resize(n);
for(int i=1; i<=n; ++i) {indexclasses[0][i]= i;} for(int i=1; i<=n; ++i) {indexclasses[0][i]= i;}
PermutationAlgebra<int,int> a=general_antisymmetrizer(indexclasses,0,true); PermutationAlgebra<int,int> a=general_antisymmetrizer(indexclasses,0,true);
//antisymmetrize only in the even indices //antisymmetrize only in the even indices
//also convert the PermutationAlgebra<int,int> to PermutationAlgebra<int,double> as needed for apply_permutation_algebra
PermutationAlgebra<int,double> b(a.size()); PermutationAlgebra<int,double> b(a.size());
for(int i=0; i<a.size(); ++i) for(int i=0; i<a.size(); ++i)
{ {