CHROMA
quark_displacement.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! @file
3  * @brief Quark displacement
4  */
5 
6 #ifndef __quark_displacement_h__
7 #define __quark_displacement_h__
8 
9 #include "chromabase.h"
10 
11 namespace Chroma
12 {
13  //! Base class for quark displacement
14  /*! @ingroup smear
15  *
16  * Supports displacement of quarks
17  */
18  template<typename T>
20  {
21  public:
22  //! Virtual destructor to help with cleanup;
23  virtual ~QuarkDisplacement() {}
24 
25  //! Displace the quark
26  /*!
27  * \param obj Object to displace ( Modify )
28  * \param u Link field ( Read )
29  * \param isign PLUS is the operator and MINUS is the dagger ( Read )
30  */
31  virtual void operator()(T& obj,
32  const multi1d<LatticeColorMatrix>& u,
33  enum PlusMinus isign) const = 0;
34  };
35 
36 }
37 
38 
39 #endif
Primary include file for CHROMA library code.
Base class for quark displacement.
virtual ~QuarkDisplacement()
Virtual destructor to help with cleanup;.
virtual void operator()(T &obj, const multi1d< LatticeColorMatrix > &u, enum PlusMinus isign) const =0
Displace the quark.
Handle< MapObject< int, EVPair< LatticeColorVector > > > obj
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static multi1d< LatticeColorMatrix > u
LinOpSysSolverMGProtoClover::T T