HILA
Loading...
Searching...
No Matches
Dirac_Wilson< matrix > Class Template Reference

#include <wilson.h>

Public Types

using matrix_type = matrix
 The matrix type.
 
using type_flt = Dirac_Wilson< typename gauge_field_base< matrix >::gauge_type_flt >
 
using vector_type = Wilson_vector< N, radix >
 The wilson vector type.
 

Public Member Functions

void apply (const Field< vector_type > &in, Field< vector_type > &out)
 Applies the operator to in.
 
void dagger (const Field< vector_type > &in, Field< vector_type > &out)
 Applies the conjugate of the operator.
 
 Dirac_Wilson (Dirac_Wilson &d)
 Constructor: initialize mass and gauge.
 
template<typename M >
 Dirac_Wilson (Dirac_Wilson< M > &d, gauge_field_base< matrix > &g)
 Construct from another Dirac_Wilson operator of a different type.
 
 Dirac_Wilson (double k, Field< matrix >(&U)[4])
 Constructor: initialize mass and gauge.
 
 Dirac_Wilson (double k, gauge_field_base< matrix > &g)
 Constructor: initialize mass and gauge.
 
template<typename momtype >
void force (const Field< vector_type > &chi, const Field< vector_type > &psi, Field< momtype >(&force)[4], int sign=1)
 

Public Attributes

double kappa
 The hopping parameter, kappa = 1/(8-2m)
 
Parity par = ALL
 The parity this operator applies to.
 

Static Public Attributes

static constexpr int N = matrix::size
 Size of the gauge matrix and color dimension of the Wilson vector.
 

Detailed Description

template<typename matrix>
class Dirac_Wilson< matrix >

An operator class that applies the Wilson Dirac operator D.apply(in, out) aplies the operator D.dagger(int out) aplies the conjugate of the operator

This is useful for defining inverters as composite operators. For example the conjugate gradient inverter is CG<Dirac_Wilson>.

Definition at line 146 of file wilson.h.

Member Typedef Documentation

◆ type_flt

template<typename matrix >
using Dirac_Wilson< matrix >::type_flt = Dirac_Wilson<typename gauge_field_base<matrix>::gauge_type_flt>

Single precision type in case the base type is double precision. This is used to precondition the inversion of this operator

Definition at line 165 of file wilson.h.

Member Function Documentation

◆ force()

template<typename matrix >
template<typename momtype >
void Dirac_Wilson< matrix >::force ( const Field< vector_type > &  chi,
const Field< vector_type > &  psi,
Field< momtype >(&)  force[4],
int  sign = 1 
)
inline

Applies the derivative of the Dirac operator with respect to the gauge Field

Definition at line 197 of file wilson.h.


The documentation for this class was generated from the following file: