33 namespace Test_HotStart {
 
   34   const std::string 
test_name = 
"HotStart.Eigenvalue";
 
   38     const std::string filename_input = 
"test_HotStart_Eigenvalue.yaml";
 
   44 #ifdef USE_TESTMANAGER_AUTOREGISTER 
   46 #if defined(USE_GROUP_SU2) 
   64     const double pi = 4.0 * atan(1.0);
 
   70     const string str_vlevel = params_test.
get_string(
"verbose_level");
 
   72     const bool   do_check        = params_test.
is_set(
"expected_result");
 
   73     const double expected_result = do_check ? params_test.
get_double(
"expected_result") : 0.0;
 
   81     int i_seed_noise = 1234567;
 
   96     valarray<double> vec(2 * Nc);
 
   98     for (
int site = 0; site < Nvol; ++site) {
 
   99       for (
int mu = 0; mu < Ndim; ++mu) {
 
  100         vec = eigen_qr.
solve(U->
ptr(0, site, mu));
 
  101         for (
int icolor = 0; icolor < Nc; ++icolor) {
 
  102           double arg = atan2(vec[2 * icolor + 1], vec[2 * icolor]);
 
  117     va = va_all / Nval - av * av;
 
  123     vout.
general(vl, 
"  # of eigenvalue  = %10d\n", Nval);
 
  126     vout.
general(vl, 
"  var(expected)    = %23.16e\n", pi / sqrt(3.0));
 
  136       vout.
detailed(vl, 
"check skipped: expected_result not set.\n\n");
 
Random number generator base on M-series. 
 
void detailed(const char *format,...)
 
const double * ptr(const int jin, const int site, const int jex) const 
 
void general(const char *format,...)
 
const std::string test_name
 
std::valarray< double > solve(const double *matrix)
 
void set_random(RandomNumbers *rand)
 
Parameters lookup(const string &key) const 
 
static bool RegisterTest(const std::string &key, const Test_function func)
 
double get_double(const string &key) const 
 
bool is_set(const string &key) const 
 
static void read(const std::string ¶ms_file, Parameters ¶ms)
 
int verify(const double result, const double expected, double eps)
 
static int reduce_sum(int count, double *recv_buf, double *send_buf, int pattern=0)
make a global sum of an array of double over the communicator. pattern specifies the dimensions to be...
 
string get_string(const string &key) const 
 
void report(const Bridge::VerboseLevel vl=Bridge::GENERAL)
 
static VerboseLevel set_verbose_level(const std::string &str)