15 #ifndef FOPR_CRS_INCLUDED
16 #define FOPR_CRS_INCLUDED
109 }
else if (
m_mode ==
"DdagD") {
111 }
else if (
m_mode ==
"Ddag") {
123 }
else if (
m_mode ==
"DdagD") {
125 }
else if (
m_mode ==
"Ddag") {
147 std::vector<double>&,
const Field&);
151 static Fopr *create_object_with_fopr(
Fopr *fopr)
156 static Fopr *create_object_with_filename(
const std::string& fname)
162 static bool register_factory()
164 bool init1 = Fopr::Factory_fopr::Register(
"CRS", create_object_with_fopr);
165 bool init2 = Fopr::Factory_string::Register(
"CRS", create_object_with_filename);
167 return init1 && init2;
virtual void set_config(Field *)=0
setting pointer to the gauge configuration.
Container of Field-type object.
Fopr_CRS(unique_ptr< Fopr > &fopr)
void Ddag(Field &, const Field &)
void set_matrix_1row(int &, std::vector< int > &, std::vector< double > &, const Field &)
void set_mode(const std::string mode)
setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelev...
std::string get_mode() const
only for Fopr_Overlap
int field_nex()
returns the external d.o.f. for which the fermion operator is defined.
Bridge::VerboseLevel m_vl
void H(Field &, const Field &)
int field_nvol()
returns the volume for which the fermion operator is defined.
std::vector< int > m_rowidx_nz
void set_parameters(const Parameters &)
static const std::string class_name
void crucial(const char *format,...)
std::vector< double > m_elem_nz
void DdagD(Field &, const Field &)
void write_matrix(const std::string)
void set_config(Field *U)
setting pointer to the gauge configuration.
std::vector< int > m_column_nz
Fopr_CRS(const std::string fname)
void D(Field &, const Field &)
Base class of fermion operator family.
void mult(Field &v, const Field &f)
multiplies fermion operator to a given field (2nd argument)
Fermion operator with CRS matrix format.
void mult_dag(Field &v, const Field &f)
hermitian conjugate of mult(Field&, const Field&).
void set_config(unique_ptr< Field_G > &U)
int field_nin()
returns the on-site d.o.f. for which the fermion operator is defined.