Home | History | Annotate | Download | only in spbench

Lines Matching refs:statbuf

214 void call_solver(Solver &solver, const int solver_id, const typename Solver::MatrixType& A, const Matrix<Scalar, Dynamic, 1>& b, const Matrix<Scalar, Dynamic, 1>& refX,std::ofstream& statbuf)
233 statbuf << " <TIME>\n";
234 statbuf << " <COMPUTE> " << timer.value() << "</COMPUTE>\n";
247 statbuf << " <SOLVE> " << timer.value() << "</SOLVE>\n";
251 statbuf << " <TOTAL> " << total_time << "</TOTAL>\n";
253 statbuf << " </TIME>\n";
265 statbuf << " <ERROR> " << rel_error << "</ERROR>\n";
281 std::ofstream statbuf(statFile.c_str(), std::ios::app);
282 statbuf << " <SOLVER_STAT ID='" << solver_id <<"'>\n";
283 call_solver(solver, solver_id, A, b, refX,statbuf);
284 statbuf << " </SOLVER_STAT>\n";
285 statbuf.close();
294 std::ofstream statbuf(statFile.c_str(), std::ios::app);
295 statbuf << " <SOLVER_STAT ID='" << solver_id <<"'>\n";
296 call_solver(solver, solver_id, A, b, refX,statbuf);
297 statbuf << " <ITER> "<< solver.iterations() << "</ITER>\n";
298 statbuf << " </SOLVER_STAT>\n";
500 std::ofstream statbuf(statFile.c_str(), std::ios::app);
501 statbuf << "<LINEARSYSTEM> \n";
502 statbuf << " <MATRIX> \n";
503 statbuf << " <NAME> " << it.matname() << " </NAME>\n";
504 statbuf << " <SIZE> " << it.matrix().rows() << " </SIZE>\n";
505 statbuf << " <ENTRIES> " << it.matrix().nonZeros() << "</ENTRIES>\n";
508 statbuf << " <SYMMETRY> Symmetric </SYMMETRY>\n" ;
510 statbuf << " <POSDEF> YES </POSDEF>\n";
512 statbuf << " <POSDEF> NO </POSDEF>\n";
517 statbuf << " <SYMMETRY> NonSymmetric </SYMMETRY>\n" ;
518 statbuf << " <POSDEF> NO </POSDEF>\n";
520 statbuf << " </MATRIX> \n";
521 statbuf.close();
534 std::ofstream statbuf(statFile.c_str(), std::ios::app);
535 statbuf << " <BEST_SOLVER ID='"<< best_time_id
537 statbuf << " </LINEARSYSTEM> \n";
538 statbuf.close();