36 if (getenv(
"EIGEN_MATRIXDIR") == NULL) {
37 std::cerr <<
"Please, specify the location of the matrices with -d mat_folder or the environment variable "
39 std::cerr <<
" Run with --help to see the list of all the available options \n";
42 matrix_dir = getenv(
"EIGEN_MATRIXDIR");
45 std::ofstream statbuf;
53 statFileExists =
true;
57 std::cerr <<
"Unable to open the provided file for writing... \n";
64 if (
get_options(argc,
args,
"--eps", &inval)) tol = atof(inval.c_str());
65 if (
get_options(argc,
args,
"--maxits", &inval)) maxiters = atoi(inval.c_str());
69 Browse_Matrices<double>(matrix_dir, statFileExists, statFile, maxiters, tol);
72 Browse_Matrices<std::complex<double> >(matrix_dir, statFileExists, statFile, maxiters, tol);
75 statbuf.open(statFile.c_str(), std::ios::app);
76 statbuf <<
"</BENCH> \n";
77 cout <<
"\n Output written in " << statFile <<
" ...\n";
Array< double, 1, 3 > e(1./3., 0.5, 2.)
args
Definition: compute_granudrum_aor.py:143
help
Definition: compute_granudrum_aor.py:141
void bench_printhelp()
Definition: spbenchsolver.cpp:3
bool get_options(int argc, char **args, string option, string *value=0)
Definition: spbenchsolver.h:555
void printStatheader(std::ofstream &out)
Definition: spbenchsolver.h:109
std::ofstream out("Result.txt")