CHROMA
stoch_var.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Stochastic variable construction
4  *
5  */
6 
7 #ifndef __stoch_var_h__
8 #define __stoch_var_h__
9 
10 namespace Chroma {
11 
12 //! Stochastic variable construction
13 /*!
14  * \ingroup hadron
15  *
16  * This routine averages timeslice sums of fermion disconnected loop
17  * operators over the number of stochastic sources.
18  * It also calculates the standard deviation on the mean of the real
19  * and imaginary parts of these operators.
20  *
21  * \param ferm_loop_sum sum over stochastice samples of timeslice
22  * disconnected fermion loop operators
23  * \param ferm_loop The timeslice operators for EACH stochastic sample
24  * \param sigma standard deviation on the mean of the real part
25  * of the operator
26  * \param im_sigma same as above for imaginary part
27  * \param t_length length of lattice in time dir
28  * \param Nsamp Number of stochastic samples.
29  */
30 
31 void
32 stoch_var(multi1d<DComplex>& ferm_loop_sum, multi2d<DComplex>& ferm_loop,
33  multi1d<Real64>& sigma, multi1d<Real64>& imsigma,
34  int t_length, int Nsamp);
35 
36 } // end namespace Chroma
37 
38 #endif
void stoch_var(multi1d< DComplex > &ferm_loop_sum, multi2d< DComplex > &ferm_loop, multi1d< Real64 > &sigma, multi1d< Real64 > &im_sigma, int t_length, int Nsamp)
Stochastic variable construction.
Definition: stoch_var.cc:32
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10