Bridge++
Ver. 2.0.2
|
Optimal Domain-wall fermion operator. More...
#include <afopr_Domainwall_5din.h>
Public Types | |
typedef AFIELD::real_t | real_t |
Public Member Functions | |
AFopr_Domainwall_5din (const Parameters ¶ms) | |
~AFopr_Domainwall_5din () | |
void | set_parameters (const Parameters ¶ms) |
sets parameters by a Parameter object: to be implemented in a subclass. More... | |
void | set_parameters (const double mq, const double M0, const int Ns, const std::vector< int > bc, const double b, const double c) |
set parameters in the case of Moebius domain-wall. More... | |
void | set_precond_parameters () |
set parameters for preconditioning. More... | |
void | set_coefficients (const std::vector< double > b, const std::vector< double > c) |
set coefficients if they depend in s. More... | |
bool | needs_convert () |
this class needs convert of fermion field. More... | |
void | convert (AFIELD &, const Field &) |
convert Field to AField for this class. More... | |
void | reverse (Field &, const AFIELD &) |
reverse AField to Field. More... | |
void | set_config (Field *U) |
setting gauge configuration (common interface). More... | |
void | set_mode (std::string mode) |
setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelevant call. More... | |
std::string | get_mode () const |
returns the current mult mode. More... | |
void | mult (AFIELD &v, const AFIELD &w) |
multiplies fermion operator to a given field. More... | |
void | mult_dag (AFIELD &v, const AFIELD &w) |
hermitian conjugate of mult. More... | |
void | mult (AFIELD &v, const AFIELD &w, std::string mode) |
void | mult_dag (AFIELD &v, const AFIELD &w, std::string mode) |
mult_dag with specified mode. More... | |
void | mult_gm5 (AFIELD &v, const AFIELD &w) |
mult_dag with specified mode. More... | |
void | DdagD (AFIELD &, const AFIELD &) |
void | D (AFIELD &, const AFIELD &) |
void | Ddag (AFIELD &, const AFIELD &) |
void | mult_D (AFIELD &, const AFIELD &) |
void | mult_Ddag (AFIELD &, const AFIELD &) |
void | DdagD_prec (AFIELD &, const AFIELD &) |
void | D_prec (AFIELD &, const AFIELD &) |
void | Ddag_prec (AFIELD &, const AFIELD &) |
void | Prec (AFIELD &, const AFIELD &) |
void | Precdag (AFIELD &, const AFIELD &) |
void | L_inv (AFIELD &, const AFIELD &) |
void | U_inv (AFIELD &, const AFIELD &) |
void | Ldag_inv (AFIELD &, const AFIELD &) |
void | Udag_inv (AFIELD &, const AFIELD &) |
int | field_nin () |
returns the on-site degree of freedom of the fermion field. More... | |
int | field_nvol () |
returns the volume of the fermion field. More... | |
int | field_nex () |
returns the external degree of freedom of the fermion field. More... | |
double | flop_count () |
this returns the number of floating point number operations. More... | |
double | flop_count (std::string mode) |
flop-count for specified mode. More... | |
const std::string | class_name |
const std::string | class_name |
Public Member Functions inherited from AFopr< AFIELD > | |
AFopr () | |
virtual | ~AFopr () |
virtual void | get_parameters (Parameters ¶ms) const |
gets parameters by a Parameter object: to be implemented in a subclass. More... | |
virtual void | mult_up (int mu, AFIELD &, const AFIELD &) |
upward nearest neighbor hopping term. More... | |
virtual void | mult_dn (int mu, AFIELD &, const AFIELD &) |
downward nearest neighbor hopping term. More... | |
virtual void | normalize_fprop (AFIELD &) |
normalize propagator if necessary (default: do nothing) More... | |
virtual void | normalize_fopr (AFIELD &) |
normalize propagator if necessary (default: do nothing) More... | |
Static Public Attributes | |
static const std::string | class_name = "AFopr_Domainwall_5din" |
Private Types | |
using | allocator_t = typename AFIELD::template aligned_allocator< char > |
using | Channel = Channel_impl< allocator_t > |
Private Member Functions | |
void | init (const Parameters ¶ms) |
initial setup. More... | |
void | tidyup () |
final tidyup. More... | |
void | setup_channels () |
setup channels for communication. More... | |
void | set_config_omp (Field *u) |
setting gauge configuration (setting omp parallel). More... | |
void | set_config_impl (Field *u) |
setting gauge configuration (implementation). More... | |
void | Dhop (real_t *, real_t *) |
hopping part of fermion operator. More... | |
void | Dhop_1 (real_t *, real_t *) |
void | Dhop_2 (real_t *, real_t *) |
void | Dhop_b (real_t *, real_t *) |
Private Attributes | |
real_t | m_mq |
quark mass More... | |
real_t | m_M0 |
domain-wall height More... | |
int | m_Ns |
size of fifth-dimension More... | |
std::vector< int > | m_boundary |
boundary conditions More... | |
std::vector< real_t > | m_b |
std::vector< real_t > | m_c |
std::string | m_repr |
gamma matrix representation More... | |
std::string | m_mode |
Bridge::VerboseLevel | m_vl |
verbose level More... | |
int | m_Nx |
int | m_Ny |
int | m_Nz |
int | m_Nt |
int | m_Nvol |
int | m_Ndim |
int | m_NinF |
int | m_Nvcd |
int | m_Ndf |
int | m_Nxv |
int | m_Nyv |
int | m_Nstv |
AFIELD | m_U |
AFIELD | m_w4 |
AFIELD | m_v4 |
AFIELD | m_t4 |
AFIELD | m_y4 |
working 4d vectors. More... | |
AFIELD | m_w1 |
AFIELD | m_v1 |
AFIELD | m_v2 |
working 5d vectors. More... | |
std::vector< real_t > | m_dp |
std::vector< real_t > | m_dpinv |
std::vector< real_t > | m_dm |
std::vector< real_t > | m_e |
std::vector< real_t > | m_f |
real_t | m_g |
int | m_Nsize [4] |
int | do_comm [4] |
communication switch (4=Ndim): (0: n, 1: y). More... | |
int | do_comm_any |
communication switch (if any): (0: n, 1: y). More... | |
std::vector< int > | m_Nbdsize |
std::vector< Channel > | chsend_up |
std::vector< Channel > | chrecv_up |
std::vector< Channel > | chsend_dn |
std::vector< Channel > | chrecv_dn |
ChannelSet | chset_send |
ChannelSet | chset_recv |
Additional Inherited Members | |
Static Protected Attributes inherited from AFopr< AFIELD > | |
static const std::string | class_name |
Optimal Domain-wall fermion operator.
template version. [18 Apr 2017 H.Matsufuru]
Definition at line 35 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 79 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 80 of file afopr_Domainwall_5din.h.
typedef AFIELD::real_t AFopr_Domainwall_5din< AFIELD >::real_t |
Definition at line 38 of file afopr_Domainwall_5din.h.
|
inline |
Definition at line 85 of file afopr_Domainwall_5din.h.
|
inline |
Definition at line 92 of file afopr_Domainwall_5din.h.
const std::string AFopr_Domainwall_5din< AField< double, QXS > >::class_name |
Definition at line 71 of file afopr_Domainwall_5din_double.cpp.
const std::string AFopr_Domainwall_5din< AField< float, QXS > >::class_name |
Definition at line 72 of file afopr_Domainwall_5din_float.cpp.
|
virtual |
convert Field to AField for this class.
Reimplemented from AFopr< AFIELD >.
Definition at line 384 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::D | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 620 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::D_prec | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 575 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::Ddag | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 628 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::Ddag_prec | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 587 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::DdagD | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 556 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::DdagD_prec | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 565 of file afopr_Domainwall_5din-tmpl.h.
|
private |
hopping part of fermion operator.
|
private |
|
private |
|
private |
|
inlinevirtual |
returns the external degree of freedom of the fermion field.
Implements AFopr< AFIELD >.
Definition at line 163 of file afopr_Domainwall_5din.h.
|
inlinevirtual |
returns the on-site degree of freedom of the fermion field.
Implements AFopr< AFIELD >.
Definition at line 161 of file afopr_Domainwall_5din.h.
|
inlinevirtual |
returns the volume of the fermion field.
Implements AFopr< AFIELD >.
Definition at line 162 of file afopr_Domainwall_5din.h.
|
inlinevirtual |
this returns the number of floating point number operations.
Reimplemented from AFopr< AFIELD >.
Definition at line 166 of file afopr_Domainwall_5din.h.
|
virtual |
flop-count for specified mode.
Reimplemented from AFopr< AFIELD >.
Definition at line 849 of file afopr_Domainwall_5din-tmpl.h.
|
inlinevirtual |
returns the current mult mode.
Reimplemented from AFopr< AFIELD >.
Definition at line 124 of file afopr_Domainwall_5din.h.
|
private |
initial setup.
Definition at line 15 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::L_inv | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 795 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::Ldag_inv | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 821 of file afopr_Domainwall_5din-tmpl.h.
|
inlinevirtual |
multiplies fermion operator to a given field.
Reimplemented from AFopr< AFIELD >.
Definition at line 126 of file afopr_Domainwall_5din.h.
|
virtual |
mult with specified mode. Possible modes: D, Ddag, DdagD, D_prec, Ddag_prec, DdagD_prec.
Reimplemented from AFopr< AFIELD >.
Definition at line 477 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::mult_D | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 636 of file afopr_Domainwall_5din-tmpl.h.
|
inlinevirtual |
hermitian conjugate of mult.
Reimplemented from AFopr< AFIELD >.
Definition at line 129 of file afopr_Domainwall_5din.h.
|
virtual |
mult_dag with specified mode.
Reimplemented from AFopr< AFIELD >.
Definition at line 509 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::mult_Ddag | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 715 of file afopr_Domainwall_5din-tmpl.h.
|
virtual |
mult_dag with specified mode.
Reimplemented from AFopr< AFIELD >.
Definition at line 541 of file afopr_Domainwall_5din-tmpl.h.
|
inlinevirtual |
this class needs convert of fermion field.
Reimplemented from AFopr< AFIELD >.
Definition at line 109 of file afopr_Domainwall_5din.h.
void AFopr_Domainwall_5din< AFIELD >::Prec | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 598 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::Precdag | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 609 of file afopr_Domainwall_5din-tmpl.h.
|
virtual |
Reimplemented from AFopr< AFIELD >.
Definition at line 424 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::set_coefficients | ( | const std::vector< double > | b, |
const std::vector< double > | c | ||
) |
set coefficients if they depend in s.
Definition at line 301 of file afopr_Domainwall_5din-tmpl.h.
|
virtual |
setting gauge configuration (common interface).
Implements AFopr< AFIELD >.
Definition at line 337 of file afopr_Domainwall_5din-tmpl.h.
|
private |
setting gauge configuration (implementation).
Definition at line 369 of file afopr_Domainwall_5din-tmpl.h.
|
private |
setting gauge configuration (setting omp parallel).
Definition at line 356 of file afopr_Domainwall_5din-tmpl.h.
|
virtual |
setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelevant call.
Reimplemented from AFopr< AFIELD >.
Definition at line 464 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::set_parameters | ( | const double | mq, |
const double | M0, | ||
const int | Ns, | ||
const std::vector< int > | bc, | ||
const double | b, | ||
const double | c | ||
) |
set parameters in the case of Moebius domain-wall.
|
virtual |
sets parameters by a Parameter object: to be implemented in a subclass.
Reimplemented from AFopr< AFIELD >.
Definition at line 160 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::set_precond_parameters |
set parameters for preconditioning.
Definition at line 261 of file afopr_Domainwall_5din-tmpl.h.
|
private |
setup channels for communication.
Definition at line 126 of file afopr_Domainwall_5din-tmpl.h.
|
private |
final tidyup.
Definition at line 118 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::U_inv | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 808 of file afopr_Domainwall_5din-tmpl.h.
void AFopr_Domainwall_5din< AFIELD >::Udag_inv | ( | AFIELD & | v, |
const AFIELD & | w | ||
) |
Definition at line 835 of file afopr_Domainwall_5din-tmpl.h.
|
private |
Definition at line 81 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 81 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 81 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 81 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 82 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 82 of file afopr_Domainwall_5din.h.
|
static |
Definition at line 39 of file afopr_Domainwall_5din.h.
|
private |
communication switch (4=Ndim): (0: n, 1: y).
Definition at line 75 of file afopr_Domainwall_5din.h.
|
private |
communication switch (if any): (0: n, 1: y).
Definition at line 76 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 47 of file afopr_Domainwall_5din.h.
|
private |
boundary conditions
Definition at line 46 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 48 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 68 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 66 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 67 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 69 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 70 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 71 of file afopr_Domainwall_5din.h.
|
private |
domain-wall height
Definition at line 44 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 51 of file afopr_Domainwall_5din.h.
|
private |
quark mass
Definition at line 43 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 78 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 57 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 56 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 57 of file afopr_Domainwall_5din.h.
|
private |
size of fifth-dimension
Definition at line 45 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 73 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 58 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 55 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 57 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 56 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 55 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 58 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 55 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 58 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 55 of file afopr_Domainwall_5din.h.
|
private |
gamma matrix representation
Definition at line 49 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 62 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 60 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 63 of file afopr_Domainwall_5din.h.
|
private |
working 5d vectors.
Definition at line 63 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 62 of file afopr_Domainwall_5din.h.
|
private |
verbose level
Definition at line 53 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 63 of file afopr_Domainwall_5din.h.
|
private |
Definition at line 62 of file afopr_Domainwall_5din.h.
|
private |
working 4d vectors.
Definition at line 62 of file afopr_Domainwall_5din.h.