1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-12 20:27:06 +01:00

Added support for Ta to Lattice types

This commit is contained in:
neo
2015-06-04 18:29:55 +09:00
parent 3055d2cf2c
commit 4b114fce3d
3 changed files with 29 additions and 12 deletions

View File

@ -123,7 +123,9 @@ int main (int argc, char ** argv)
cMat = outerProduct(cVec,cVec);
scalar = localInnerProduct(cVec,cVec);
cMat = Ta(cMat); //traceless antihermitian
scalar += scalar;
scalar -= scalar;
scalar *= scalar;
@ -214,13 +216,12 @@ int main (int argc, char ** argv)
scm=transposeIndex<1>(scm);
random(SerialRNG, cm);
std::cout << cm << std::endl;
//random(SerialRNG, cm);
//std::cout << cm << std::endl;
cm = Ta(cm);
//cm = adj(cm);
TComplex tracecm= trace(cm);
std::cout << cm << " "<< tracecm << std::endl;
//TComplex tracecm= trace(cm);
//std::cout << cm << " "<< tracecm << std::endl;
// Foo = Foo+scalar; // LatticeColourMatrix+Scalar