36 namespace Test_Spectrum_CRSMatrix
 
   42     const string& solution,
 
   65     double             Stop_cond = 1.0e-28;
 
   80     solver->
solve(x, b2, Nconv, diff);
 
   81     vout.
general(vl, 
"solver(CG):  Nconv = %4d  diff = %12.6e\n", Nconv, diff);
 
   85     double xx = x.
norm2();
 
  101     std::ofstream field_out(filename.c_str());
 
  102     if (!field_out.is_open()) {
 
  103       vout.
crucial(
"Error: Failed to open the text file. %s\n", filename.c_str());
 
  107     vout.
general(
"Writing Field to %s\n", filename.c_str());
 
  109     field_out << f.
nin() << std::endl;
 
  110     field_out << f.
nvol() << std::endl;
 
  111     field_out << f.
nex() << std::endl;
 
  113     field_out.setf(std::ios_base::scientific, std::ios_base::floatfield);
 
  114     field_out.precision(14);
 
  116     for (
int j = 0, n = f.
size(); j < n; ++j) {
 
  117       field_out << f.
cmp(j) << std::endl;
 
  132     std::ifstream field_in(filename.c_str());
 
  133     if (!field_in.is_open()) {
 
  134       vout.
crucial(
"Error: Failed to open the text file. %s\n", filename.c_str());
 
  138     vout.
general(
"Reading Field from %s\n", filename.c_str());
 
  140     int Nin = 0, Nvol = 0, Nex = 0;
 
  145     f.
reset(Nin, Nvol, Nex);
 
  148     for (
int j = 0, n = f.
ntot(); j < n; ++j) {
 
void set(const int jin, const int site, const int jex, double v)
 
void general(const char *format,...)
 
static Bridge::VerboseLevel Vlevel()
 
Container of Field-type object. 
 
double cmp(const int jin, const int site, const int jex) const 
 
Standard Conjugate Gradient solver algorithm. 
 
virtual void set_parameters(const Parameters ¶ms)=0
 
int CRSsolver(const string &solution, const string &matrix, const string &source, double &result)
 
void reset(const int Nin, const int Nvol, const int Nex, const element_type cmpl=COMPLEX)
 
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y 
 
void write_text(const Field &f, const string &filename)
 
void crucial(const char *format,...)
 
void read_text(Field &f, const string &filename)
 
virtual void set_mode(std::string mode)
setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelev...
 
virtual void mult_dag(Field &, const Field &)
hermitian conjugate of mult(Field&, const Field&). 
 
virtual void solve(Field &solution, const Field &source, int &Nconv, double &diff)=0