Bridge++  Version 1.4.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
solver_CGNE.h
Go to the documentation of this file.
1 
14 #ifndef SOLVER_CGNE_INCLUDED
15 #define SOLVER_CGNE_INCLUDED
16 
17 #include "solver_CG.h"
18 
19 
21 
34 class Solver_CGNE : public Solver_CG
35 {
36  private:
38 
39  public:
40  static const std::string class_name;
41 
43  : Solver_CG(fopr) {}
44 
46  : Solver_CG(fopr.get()) {}
47 
49 
50  void set_parameters(const Parameters& params);
51 
52  void solve(Field& solution, const Field& source, int& Nconv, double& diff);
53 
54  Fopr *get_fopr() { return this->Solver_CG::get_fopr(); }
55 
56  double flop_count();
57 };
58 #endif
Fopr * get_fopr()
Definition: solver_CG.h:79
static const std::string class_name
Definition: solver_CGNE.h:40
Container of Field-type object.
Definition: field.h:39
Class for parameters.
Definition: parameters.h:46
Solver_CGNE(Fopr *fopr)
Definition: solver_CGNE.h:42
Standard Conjugate Gradient solver algorithm.
Definition: solver_CG.h:38
Solver_CGNE(unique_ptr< Fopr > &fopr)
Definition: solver_CGNE.h:45
void solve(Field &solution, const Field &source, int &Nconv, double &diff)
Definition: solver_CGNE.cpp:42
void set_parameters(const Parameters &params)
Definition: solver_CGNE.cpp:35
double flop_count()
Definition: solver_CGNE.cpp:92
CGNE solver.
Definition: solver_CGNE.h:34
Fopr * get_fopr()
Definition: solver_CGNE.h:54
Base class of fermion operator family.
Definition: fopr.h:47