CHROMA
eeu1.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Exactly exponentiate a U(1) lie algebra element
3  */
4 
5 #include "chromabase.h"
6 #include "util/gauge/eeu1.h"
7 
8 namespace Chroma
9 {
10 
11  //! Exactly exponentiate a U(1) lie algebra element
12  /*!
13  * \ingroup gauge
14  *
15  * \param lambda LatticeColorMatrix (Modify)
16  */
17 
18  void eeu1(LatticeColorMatrix& lambda)
19  {
20  START_CODE();
21 
22  if ( Nc != 1 )
23  {
24  QDPIO::cerr << __func__ << ": can only handle U(1)" << std::endl;
25  QDP_abort(1);
26  }
27 
28  LatticeReal phi = imag(trace(lambda));
29  LatticeComplex a = cmplx(cos(phi),sin(phi));
30  pokeColor(lambda, a, 0,0);
31 
32  END_CODE();
33  }
34 
35 } // end namespace Chroma
36 
Primary include file for CHROMA library code.
Exactly exponentiate a U(1) lie algebra element.
void eeu1(LatticeColorMatrix &lambda)
Exactly exponentiate a U(1) lie algebra element.
Definition: eeu1.cc:18
LatticeReal phi
Definition: mesq.cc:27
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
Complex a
Definition: invbicg.cc:95
START_CODE()