mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Read real and complex bench matrices from a unique folder
Output and display bench results using XML and XSLT
This commit is contained in:
@@ -5,7 +5,6 @@ void bench_printhelp()
|
||||
cout<< " \nbenchsolver : performs a benchmark of all the solvers available in Eigen \n\n";
|
||||
cout<< " MATRIX FOLDER : \n";
|
||||
cout<< " The matrices for the benchmark should be collected in a folder specified with an environment variable EIGEN_MATRIXDIR \n";
|
||||
cout<< " This folder should contain the subfolders real/ and complex/ : \n";
|
||||
cout<< " The matrices are stored using the matrix market coordinate format \n";
|
||||
cout<< " The matrix and associated right-hand side (rhs) files are named respectively \n";
|
||||
cout<< " as MatrixName.mtx and MatrixName_b.mtx. If the rhs does not exist, a random one is generated. \n";
|
||||
@@ -68,18 +67,16 @@ int main(int argc, char ** args)
|
||||
maxiters = atoi(inval.c_str());
|
||||
|
||||
string current_dir;
|
||||
// Test the matrices in %EIGEN_MATRIXDIR/real
|
||||
current_dir = matrix_dir + "/real";
|
||||
Browse_Matrices<double>(current_dir, statFileExists, statFile,maxiters, tol);
|
||||
// Test the real-arithmetics matrices
|
||||
Browse_Matrices<double>(matrix_dir, statFileExists, statFile,maxiters, tol);
|
||||
|
||||
// Test the matrices in %EIGEN_MATRIXDIR/complex
|
||||
current_dir = matrix_dir + "/complex";
|
||||
Browse_Matrices<std::complex<double> >(current_dir, statFileExists, statFile, maxiters, tol);
|
||||
// Test the complex-arithmetics matrices
|
||||
Browse_Matrices<std::complex<double> >(matrix_dir, statFileExists, statFile, maxiters, tol);
|
||||
|
||||
if(statFileExists)
|
||||
{
|
||||
statbuf.open(statFile.c_str(), std::ios::app);
|
||||
statbuf << "</TABLE> \n";
|
||||
statbuf << "</BENCH> \n";
|
||||
cout << "\n Output written in " << statFile << " ...\n";
|
||||
statbuf.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user