CHROMA
barcomp_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Construct all components of a baryon propagator
4  */
5 
6 #ifndef __barcomp_w_h__
7 #define __barcomp_w_h__
8 
9 #include "chromabase.h"
10 #include "io/qprop_io.h"
11 #include "util/ft/sftmom.h"
12 
13 namespace Chroma
14 {
15 
16  //! Sparse QQQ object
17  struct QQQSparse_t
18  {
19  //! Serialize generalized object
20  multi1d<ComplexF> serialize();
21 
22  //! QQQ spin element
23  struct QQQElem_t
24  {
26  multi1d<ComplexF> corr;
27  };
28 
29  int length;
30  multi1d<QQQElem_t> corrs;
31  };
32 
33 
34  //! Dense QQQ object
35  struct QQQDense_t
36  {
37  //! Serialize generalized object
38  multi1d<ComplexF> serialize();
39 
40  int length;
41  multiNd<Complex> corrs;
42  };
43 
44 
45  //! Construct some components of a baryon propagator
46  /*!
47  * \ingroup hadron
48  *
49  * This routine is specific to Wilson fermions!
50  *
51  * In all baryons the colour components are contracted with the totally
52  * antisymmetric 'tensor' eps(a,b,c) = antisym_tensor(a,b,c).
53  *
54  * \param barprop baryon correlation function (in real space) ( Write )
55  * \param quark_propagator_1 quark propagator ( Read )
56  * \param quark_propagator_2 quark propagator ( Read )
57  * \param quark_propagator_3 quark propagator ( Read )
58  * \param spin_indices holds list of source/sink spin indices ( Read )
59  * \param phases object holds list of momenta ( Read )
60  * \param t0 coordinates of source in decay direction ( Read )
61  * \param bc_spec boundary condition for spectroscopy ( Read )
62  */
63 
64  void barcompSparse(QQQSparse_t& barprop,
65  const LatticePropagator& quark_propagator_1,
66  const LatticePropagator& quark_propagator_2,
67  const LatticePropagator& quark_propagator_3,
68  const multi1d<QQQSpinIndices_t> spin_indices,
69  const SftMom& phases,
70  int t0, int bc_spec);
71 
72 
73  //! Construct all components of a baryon propagator
74  /*!
75  * \ingroup hadron
76  *
77  * This routine is specific to Wilson fermions!
78  *
79  * In all baryons the colour components are contracted with the totally
80  * antisymmetric 'tensor' eps(a,b,c) = antisym_tensor(a,b,c).
81  *
82  * \param barprop baryon correlation function (in real space) ( Write )
83  * \param quark_propagator_1 quark propagator ( Read )
84  * \param quark_propagator_2 quark propagator ( Read )
85  * \param quark_propagator_3 quark propagator ( Read )
86  * \param phases object holds list of momenta ( Read )
87  * \param t0 coordinates of source in decay direction ( Read )
88  * \param bc_spec boundary condition for spectroscopy ( Read )
89  */
90 
91  void barcomp(QQQDense_t& barprop,
92  const LatticePropagator& quark_propagator_1,
93  const LatticePropagator& quark_propagator_2,
94  const LatticePropagator& quark_propagator_3,
95  const SftMom& phases,
96  int t0, int bc_spec);
97 
98 } // end namespace Chroma
99 
100 #endif
Primary include file for CHROMA library code.
Fourier transform phase factor support.
Definition: sftmom.h:35
void barcomp(QQQDense_t &barprop, const LatticePropagator &quark_propagator_1, const LatticePropagator &quark_propagator_2, const LatticePropagator &quark_propagator_3, const SftMom &phases, int t0, int bc_spec)
Construct all components of a baryon propagator.
Definition: barcomp_w.cc:167
void barcompSparse(QQQSparse_t &barprop, const LatticePropagator &quark_propagator_1, const LatticePropagator &quark_propagator_2, const LatticePropagator &quark_propagator_3, const multi1d< QQQSpinIndices_t > spin_indices, const SftMom &phases, int t0, int bc_spec)
Construct all components of a baryon propagator.
Definition: barcomp_w.cc:66
int bc_spec
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
Routines associated with Chroma propagator IO.
Fourier transform phase factor support.
Dense QQQ object.
Definition: barcomp_w.h:36
multiNd< Complex > corrs
Definition: barcomp_w.h:41
multi1d< ComplexF > serialize()
Serialize generalized object.
Definition: barcomp_w.cc:126
QQQSpinIndices_t source_sink
Definition: barcomp_w.h:25
multi1d< ComplexF > corr
Definition: barcomp_w.h:26
Sparse QQQ object.
Definition: barcomp_w.h:18
multi1d< QQQElem_t > corrs
Definition: barcomp_w.h:30
multi1d< ComplexF > serialize()
Serialize generalized object.
Definition: barcomp_w.cc:13
Hold source and sink spin indices for a sparse QQQ file.
Definition: qprop_io.h:163