CHROMA
unit_check.cc
Go to the documentation of this file.
1 
2 /*! \file
3  * \brief Test a gauge field is unitarized
4  */
5 
6 #include "chromabase.h"
7 #include "util/gauge/reunit.h"
9 
10 
11 namespace Chroma
12 {
13 
14  //! Check the unitarity of color matrix in SU(N)
15  /*!
16  * \ingroup gauge
17  *
18  * \param u The LatticeColorMatrix to be tested
19  */
20  void unitarityCheck(const multi1d<LatticeColorMatrixF3>& u)
21  {
22  START_CODE();
23 
24  int numbad;
25 
26  for (int mu=0; mu < Nd; ++mu)
27  {
28  LatticeColorMatrixF3 u_tmp = u[mu];
30  }
31 
32  END_CODE();
33  }
34 
35  void unitarityCheck(const multi1d<LatticeColorMatrixD3>& u)
36  {
37  START_CODE();
38 
39  int numbad;
40 
41  for (int mu=0; mu < Nd; ++mu)
42  {
43  LatticeColorMatrixD3 u_tmp = u[mu];
45  }
46 
47  END_CODE();
48  }
49 
50 }
51 
Primary include file for CHROMA library code.
int numbad
Definition: cool.cc:28
int mu
Definition: cool.cc:24
void unitarityCheck(const multi1d< LatticeColorMatrixF3 > &u)
Check the unitarity of color matrix in SU(N)
Definition: unit_check.cc:20
Nd
Definition: meslate.cc:74
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static multi1d< LatticeColorMatrix > u
void reunit(LatticeColorMatrixF3 &xa)
Definition: reunit.cc:467
@ REUNITARIZE_ERROR
Definition: reunit.h:29
START_CODE()
Reunitarize in place a color matrix to SU(N)