Bridge++  Ver. 2.0.2
ashiftsolver.h
Go to the documentation of this file.
1 
14 #ifndef ASHIFTSOLVER_INCLUDED
15 #define ASHIFTSOLVER_INCLUDED
16 
17 #include "bridge_defs.h"
18 #include "Parameters/parameters.h"
20 #include "IO/bridgeIO.h"
21 #include "Field/field.h"
22 #include "Fopr/fopr.h"
23 
25 template<typename FIELD>
27 {
28  public:
30 
31  virtual ~AShiftsolver() {}
32 
33  private:
34  // non-copyable
35  AShiftsolver(const AShiftsolver&);
37 
38  public:
39  virtual void set_parameters(const Parameters&) = 0;
40 
41  virtual void get_parameters(Parameters&) const = 0;
42 
43  virtual void solve(std::vector<FIELD>& solution,
44  const std::vector<double>& shift,
45  const FIELD& source,
46  int& Nconv,
47  double& diff) = 0;
48 
49  virtual double flop_count() = 0;
50 };
51 
52 #endif
AShiftsolver
Shiftsolver class as an abstract base class for multi-shift solvers.
Definition: ashiftsolver.h:26
bridgeIO.h
AShiftsolver::solve
virtual void solve(std::vector< FIELD > &solution, const std::vector< double > &shift, const FIELD &source, int &Nconv, double &diff)=0
Parameters
Class for parameters.
Definition: parameters.h:46
AShiftsolver::AShiftsolver
AShiftsolver()
Definition: ashiftsolver.h:29
AShiftsolver::flop_count
virtual double flop_count()=0
AShiftsolver::~AShiftsolver
virtual ~AShiftsolver()
Definition: ashiftsolver.h:31
field.h
parameters.h
AShiftsolver::get_parameters
virtual void get_parameters(Parameters &) const =0
fopr.h
commonParameters.h
AShiftsolver::set_parameters
virtual void set_parameters(const Parameters &)=0
AShiftsolver::operator=
AShiftsolver & operator=(const AShiftsolver &)
bridge_defs.h
Test_Gauge::shift
int shift(void)
Definition: test_Gauge_Shift.cpp:58