CHROMA
sunfill.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Fill an SU(Nc) matrix with an SU(2) submatrix
4  */
5 
6 #ifndef __sunfill_h__
7 #define __sunfill_h__
8 
9 namespace Chroma
10 {
11 
12  //! Fill a dest(su2_index) <- r_0,r_1,r_2,r_3 under a subset
13  /*!
14  * \ingroup gauge
15  *
16  * Fill an SU(Nc) matrix V with the SU(2) submatrix su2_index
17  * paramtrized by b_k in the sigma matrix basis.
18  *
19  * Fill in B from B_SU(2) = b0 + i sum_k bk sigma_k
20  *
21  * There are Nc*(Nc-1)/2 unique SU(2) submatrices in an SU(Nc) matrix.
22  * The user does not need to know exactly which one is which, just that
23  * they are unique.
24  *
25  * Arguments:
26  *
27  * \param dest su(n) matrix
28  * \param r su2 matrix represented in the O(4) rep. - an array of LatticeReal
29  * \param su2_index int lying in [0, Nc*(Nc-1)/2)
30  * \param s subset for operations (Read)
31  */
32  void
33  sunFill(LatticeColorMatrix& dest,
34  const multi1d<LatticeReal>& r,
35  int su2_index,
36  const Subset& s);
37 
38 
39 }
40  // end namespace Chroma
41 
42 #endif
int su2_index
Definition: cool.cc:27
void sunFill(LatticeColorMatrix &dest, const multi1d< LatticeReal > &r, int su2_index, const Subset &s)
Fill a dest(su2_index) <- r_0,r_1,r_2,r_3 under a subset.
Definition: sunfill.cc:33
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
multi1d< LatticeFermion > s(Ncb)